Skip to content

Commit

Permalink
github actions: add ability to skip release
Browse files Browse the repository at this point in the history
[skip release]
  • Loading branch information
xu-cheng committed Nov 9, 2020
1 parent 9a462ff commit bc83c55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,5 @@ jobs:
docker images $TAG
echo ${{ secrets.CR_PAT }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
docker push $TAG
if: github.ref == 'refs/heads/master'
if: "github.ref == 'refs/heads/master' && !(github.event_name == 'push' && contains(github.event.head_commit.message, '[skip release]'))"

0 comments on commit bc83c55

Please sign in to comment.