I am trying to create a workflow that will run only when new branch is created and never in some other case.
I tried this:
on: create: branches: - '*'
on: create: branches: - 'refs/heads/*'
on: create: branches:
It runs when I create new branch. But it runs also when I push new tag, which is not the desired behavior. I am not sure if it’s a bug or I am doing something wrong. It could be related to this https://github.community/t5/GitHub-Actions/Github-Actions-CI-CD-pipeline-branch-gt-master-gt-release-tag/m-p/29924#M116, but @jeremyepling said that it should be fixed last week. Jeremy, could you please confirm if it’s fixed?
Thanks a lot for your help.