Skip to content

Commit

Permalink
Update .github/workflows/main.yml
Browse files Browse the repository at this point in the history
Move main branch check to branch conditional

Co-authored-by: Eta <24918963+Eta0@users.noreply.github.com>
  • Loading branch information
Rexwang8 and Eta0 authored Oct 22, 2024
1 parent a3afef0 commit 5946b5b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ name: Publish

on:
workflow_run:
workflows: ["Test Commands"]
types:
- completed
workflows: ['Test Commands']
types: ['completed']
branches: ['main']

jobs:
publish:
name: Publish
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_branch == 'main' }}
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/setup-go@v2
with:
Expand Down

0 comments on commit 5946b5b

Please sign in to comment.