Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate sync job to GitHub Actions and remove CircleCI config #3508

Merged
merged 6 commits into from
Jan 17, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 0 additions & 33 deletions .circleci/config.yml
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No more CircleCI! 🥳

This file was deleted.

164 changes: 0 additions & 164 deletions .circleci/continue_config.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
automerge:
- any:
- head-branch: ['merge-main-to-develop']
18 changes: 18 additions & 0 deletions .github/workflows/auto-merge-prs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Auto-merge sync PR

on:
schedule:
- cron: '*/60 * * * *' # every 60 minutes
workflow_dispatch: # on button click

jobs:
automerge:
permissions:
pull-requests: read
contents: write
runs-on: ubuntu-latest
steps:
- name: Automerge PRs with "automerge" label
uses: "pascalgn/[email protected]"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
19 changes: 19 additions & 0 deletions .github/workflows/label-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Label PRs
on:
pull_request:
types:
- opened
- synchronize
branches:
- develop


jobs:
label-pr:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- name: Label PR with "automerge"
uses: actions/labeler@v5
23 changes: 23 additions & 0 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Sync `main` and `develop`

on:
schedule:
- cron: '*/30 * * * *' # every 30 minutes
workflow_dispatch: # on button click

jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set git email and name
run: |
git config --global user.email "[email protected]"
git config --global user.name "Kedro"

- name: Maybe merge to develop or raise a PR
run: ./tools/github_actions/merge.sh . "main" "develop" "${{ secrets.GITHUB_TOKEN }}"
28 changes: 0 additions & 28 deletions tools/circleci/docker_build_img/Dockerfile

This file was deleted.

36 changes: 0 additions & 36 deletions tools/circleci/docker_build_img/build.sh

This file was deleted.

Loading