Skip to content

Commit

Permalink
ci/cd: always run upload test and publish action on main branch
Browse files Browse the repository at this point in the history
Remove the condition that the event name must be "push".
  • Loading branch information
wdzeng committed Oct 5, 2024
1 parent 3e77bbd commit e9e704c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
upload-test:
name: Run upload test
needs: unit-test
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
if: ${{ github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -48,7 +48,7 @@ jobs:
needs:
- unit-test
- upload-test
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
if: ${{ github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
steps:
- uses: wdzeng/action-of-action@v4

0 comments on commit e9e704c

Please sign in to comment.