Skip to content

Commit

Permalink
ci: fix logic for force publish
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesCranmer committed Dec 24, 2024
1 parent f164619 commit 20d2824
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ on:
concurrency:
# Skip intermediate builds: always.
# Cancel intermediate builds: only if it is a pull request build.
group: ${{ github.workflow }}-${{ github.ref }}
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event.inputs.force_publish }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}

env:
Expand Down Expand Up @@ -130,7 +130,7 @@ jobs:
name: Publish to crates.io
runs-on: ubuntu-latest
needs: release-please
if: needs.release-please.outputs.created || (github.event.inputs.force_publish == 'true' && !github.event.inputs.git_ref && startsWith(github.event.inputs.git_ref, 'v'))
if: needs.release-please.outputs.created || (github.event.inputs.force_publish == 'true' && startsWith(github.event.inputs.git_ref, 'v'))
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -148,7 +148,7 @@ jobs:
needs:
- release-please
- publish
if: needs.release-please.outputs.created || (github.event.inputs.force_publish == 'true' && !github.event.inputs.git_ref && startsWith(github.event.inputs.git_ref, 'v'))
if: needs.release-please.outputs.created || (github.event.inputs.force_publish == 'true' && startsWith(github.event.inputs.git_ref, 'v'))
strategy:
fail-fast: false
matrix:
Expand Down

0 comments on commit 20d2824

Please sign in to comment.