From bc83c55bc01c76ec78b15eb7e54e3ccd421c259b Mon Sep 17 00:00:00 2001 From: Cheng XU Date: Mon, 9 Nov 2020 09:48:18 -0800 Subject: [PATCH] github actions: add ability to skip release [skip release] --- .github/workflows/build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 63f80b8..7353692 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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]'))" +