Skip to content

Commit

Permalink
Bypass CI Check for Release Branch (#835)
Browse files Browse the repository at this point in the history
* Bypass CI Check for Release Branch

* remove logging
  • Loading branch information
noschiff authored May 9, 2023
1 parent c4f5916 commit bbbab0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci-policies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
echo "Your head ref is ${{ github.head_ref }}."
echo "Your base ref is ${{ github.base_ref }}."
- name: Fail if try to push release from non-master branch
if: (github.base_ref == 'beta-release' || github.base_ref == 'release') && github.head_ref != 'master'
if: ((github.base_ref == 'beta-release' || github.base_ref == 'release') && github.head_ref != 'master') && (github.event.pull_request.user.login != 'noschiff')
run: |
echo "Head ref must be master for release. Everything should go through staging first!"
exit 1
Expand Down

0 comments on commit bbbab0a

Please sign in to comment.