Skip to content

Commit

Permalink
Add CI job to enable/disable GH PR merging
Browse files Browse the repository at this point in the history
  • Loading branch information
amarthadan committed Oct 27, 2022
1 parent 77c24e9 commit 2ddc740
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,18 @@ jobs:
# https://github.com/renovatebot/renovate/discussions/13704#discussioncomment-2013280
if: github.actor != 'renovate[bot]'
run: yarn changeset:check
enable-merge:
name: Enable PR merge
runs-on: ubuntu-latest
steps:
- name: Check the ENABLE_MERGE secret
env:
ENABLE_MERGE: ${{ secrets.ENABLE_MERGE }}
run: test $ENABLE_MERGE = true && exit 0 || exit 1
build-complete:
name: All tests passed
runs-on: ubuntu-latest
needs: [documentation, docker-build, unit-tests, e2e-tests, e2e-tests-examples, require-changeset]
needs: [documentation, docker-build, unit-tests, e2e-tests, e2e-tests-examples, require-changeset, enable-merge]
steps:
- run: exit 0
- name: Slack Notification
Expand Down

0 comments on commit 2ddc740

Please sign in to comment.