Skip to content

Commit 5946b5b

Browse files
Rexwang8Eta0
andauthored
Update .github/workflows/main.yml
Move main branch check to branch conditional Co-authored-by: Eta <24918963+Eta0@users.noreply.github.com>
1 parent a3afef0 commit 5946b5b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ name: Publish
22

33
on:
44
workflow_run:
5-
workflows: ["Test Commands"]
6-
types:
7-
- completed
5+
workflows: ['Test Commands']
6+
types: ['completed']
7+
branches: ['main']
88

99
jobs:
1010
publish:
1111
name: Publish
1212
runs-on: ubuntu-latest
13-
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_branch == 'main' }}
13+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1414
steps:
1515
- uses: actions/setup-go@v2
1616
with:

0 commit comments

Comments
 (0)