Skip to content

Commit

Permalink
add dummy job for skipped builds [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCalzone committed Nov 7, 2019
1 parent c32baa0 commit 4be2094
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/test-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,11 @@ jobs:
npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
npm whoami
npm publish
# Dummy job for skipped builds - without this, github reports the build as failed
skip-ci:
if: contains(github.event.head_commit.message, '[skip ci]')
runs-on: ubuntu-latest
steps:
- name: Skip build
run: echo "Build skipped!"

0 comments on commit 4be2094

Please sign in to comment.