At least I hope. According to GitHub Docs [1]:
> If you define only `tags` or only `branches`, the workflow won't run for
> events affecting the undefined Git ref.
[1]: https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#onpushpull_requestbranchestags
on:
push:
+ # This should disable running the workflow on tags, according to the
+ # on.<push|pull_request>.<branches|tags> GitHub Actions docs.
+ branches:
+ - "*"
pull_request:
jobs:
on:
push:
+ # This should disable running the workflow on tags, according to the
+ # on.<push|pull_request>.<branches|tags> GitHub Actions docs.
+ branches:
+ - "*"
pull_request:
jobs: