Skip to content

Instantly share code, notes, and snippets.

@aChase55
Created October 20, 2022 18:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aChase55/76268262937ba33941450f642d1db3d1 to your computer and use it in GitHub Desktop.
Save aChase55/76268262937ba33941450f642d1db3d1 to your computer and use it in GitHub Desktop.
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