benjamincharity
4/6/2020 - 1:35 PM

GitHub workflow job to skip builds marked with 'skip ci'.

- 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'