I want to skip a workflow execution if a tagged commit is pushed (since tagged commits are being handled by semantic release in my case and should not trigger the workflow), to do so I used the “tags-ignore” option as explained here
Here is my workflow config:
name: Deploy on: push: tags-ignore: - '**' branches: - master jobs: deploy: ...
When a tagged commit is pushed, this workflow is still being run, despite matching the pattern as described here
Any suggestions why?
The current workaround I’m using is a conditional at the job level:
name: Deploy on: push: tags-ignore: - '**' branches: - master jobs: deploy: if: contains(github.event.head_commit.message, 'skip ci') == false ...
I suppose I could achieve something similar comparing the tag name in a similar conditional, however I wanted to avoid execution at the workflow level instead. Currently when the above condition is true, the job does not run, but the workflow still appears listed in the actions tab (with a grey icon indicator indicating it has being skipped).