Skip to content

Commit

Permalink
CI: gate main publish behind test
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexwang8 committed Oct 17, 2024
1 parent e184561 commit 03f7a81
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
name: Publish

on:
push:
branches: ["main"]
workflow_run:
workflows: ["TestGPT_BPE.yml"]
types:
- completed

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

0 comments on commit 03f7a81

Please sign in to comment.