Skip to content

Instantly share code, notes, and snippets.

@benjamincharity
Created April 6, 2020 13:35
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 benjamincharity/0667ec6aedf95faf781a6e5d5ca26845 to your computer and use it in GitHub Desktop.
Save benjamincharity/0667ec6aedf95faf781a6e5d5ca26845 to your computer and use it in GitHub Desktop.
- name: Set SHOULD_RUN flag
run: |
if [[ "${{github.event.head_commit.message}}" =~ (skip\ ci|ci\ skip) ]]; then
echo "::set-env name=SHOULD_RUN::false"
else
echo "::set-env name=SHOULD_RUN::true"
fi
- name: Manual build
run: yarn library:build:prod
if: env.SHOULD_RUN == 'true'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment