Skip to content

Commit 5f64407

Browse files
committed
Correct conditions for jobs
1 parent 5679263 commit 5f64407

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
version-file: ${{ env.VERSION_FILE }}
3232
version-file-extraction-pattern: ${{ env.VERSION_PATTERN }}
3333
build-and-test:
34-
if: github.event.inputs.skip-publication != 'true' || !cancelled()
34+
if: github.event.inputs.skip-publication != 'true' && !cancelled()
3535
uses: ./.github/workflows/build-and-test.yml
3636
publish_artifacts:
3737
# permissions required for sigstore signature
@@ -41,7 +41,7 @@ jobs:
4141
needs:
4242
- version
4343
- build-and-test
44-
if: github.event.inputs.skip-publication != 'true' || !cancelled()
44+
if: github.event.inputs.skip-publication != 'true' && !cancelled()
4545
runs-on: macos-latest
4646
steps:
4747
- name: 'Checkout Repository'
@@ -87,7 +87,7 @@ jobs:
8787
needs:
8888
- publish_artifacts
8989
- version
90-
if: github.event.inputs.skip-publication == 'true' || !cancelled()
90+
if: ${{ !cancelled() }}
9191
steps:
9292
- name: 'Checkout Repository'
9393
uses: actions/checkout@v4
@@ -127,6 +127,7 @@ jobs:
127127
makeLatest: ${{ github.ref == 'refs/heads/main' }}
128128
update-version:
129129
runs-on: ubuntu-latest
130+
if : ${{ !cancelled() }}
130131
needs:
131132
- create_release
132133
- version

0 commit comments

Comments
 (0)