How to run GitHub Actions Workflow only for new tags

Hi @ethomson, even when adding quotes around my tags

on:
  create:
    tags:
    - 'v[0-9]+.[0-9]+.[0-9]+*'

my workflow is triggered when pushing to a new branch (without any tags)

git push --set-upstream origin my-new-branch

Is it possible that the on.create.tags filter does not work?

https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#onpushpull_requestbranchestags

The docs have no indication that on.create.tags exists that I see. tags filter only exists for push and pull_request.

1 Like

Thanks @lucianposton, I retried the 

on.push.tags

and it is the right event for me. I originally thought that creating the tag directly from the GitHub interface would not be considered a push, but you made me reconsider and you saved me some time. Thanks