Created
October 20, 2022 18:52
-
-
Save aChase55/76268262937ba33941450f642d1db3d1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jobs: | |
build-upload: | |
runs-on: macos-12 | |
steps: | |
- name: Check base ref | |
id: check-base-ref | |
run: | | |
REF=${{ github.event.base_ref }} | |
if ! [[ $REF =~ ^refs/heads/(main|release/.*)$ ]]; then | |
echo "Deployments via tagging must be done against the main or release branch"; | |
exit 1; | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment