Skip to content

Commit 9cdaa9c

Browse files
cd: clarify conditions
Trigger only on "push to master" and "tag push" instead of "any action with master" branch and "any action with tag". For now, it doesn't change anything since the workflow is triggered only on push, but it is possible that it would be extended in the future.
1 parent 57bcf8d commit 9cdaa9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/push_rockspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323

2424
push-scm-rockspec:
2525
runs-on: ubuntu-20.04
26-
if: github.ref == 'refs/heads/master'
26+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
2727
steps:
2828
- uses: actions/checkout@master
2929

@@ -34,7 +34,7 @@ jobs:
3434

3535
push-tagged-rockspec:
3636
runs-on: ubuntu-20.04
37-
if: startsWith(github.ref, 'refs/tags')
37+
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }}
3838
needs: version-check
3939
steps:
4040
- uses: actions/checkout@master

0 commit comments

Comments
 (0)