Skip to content

Commit

Permalink
Only run the publish CI job on develop and release branches.
Browse files Browse the repository at this point in the history
  • Loading branch information
whitequark committed Dec 10, 2023
1 parent 12231a3 commit 2e522cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
publish:
needs: check
runs-on: ubuntu-latest
if: "${{ github.event.ref == 'refs/heads/develop' || github.event.ref == 'refs/heads/release' }}"
steps:
- name: Check out source code
uses: actions/checkout@v3
Expand All @@ -47,7 +48,7 @@ jobs:
release:
needs: check
runs-on: ubuntu-latest
if: "contains(github.event.head_commit.message, 'autorelease') && github.event_name == 'push' && startsWith(github.event.ref, 'refs/heads/develop')"
if: "contains(github.event.head_commit.message, 'autorelease') && github.event_name == 'push' && github.event.ref == 'refs/heads/develop'"
steps:
- name: Check out source code
uses: actions/checkout@v3
Expand Down

0 comments on commit 2e522cb

Please sign in to comment.