Skip to content

Commit 75ecebd

Browse files
committed
ci: replace always() condition with recommended !cancelled()
1 parent 5d1b281 commit 75ecebd

File tree

12 files changed

+29
-29
lines changed

12 files changed

+29
-29
lines changed

.github/actions/container-test/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ runs:
6565
env:
6666
CONTAINER: ${{ inputs.container }}
6767

68-
- if: always() && steps.setup-testspace.outcome == 'success'
68+
- if: ${{ !cancelled() && steps.setup-testspace.outcome == 'success' }}
6969
shell: bash
7070
run: >-
7171
testspace --verbose
@@ -74,7 +74,7 @@ runs:
7474
env:
7575
CONTAINER: ${{ inputs.container }}
7676

77-
- if: always() && steps.test.outcome != 'skipped' && steps.test.outcome != 'cancelled'
77+
- if: ${{ !cancelled() }}
7878
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
7979
with:
8080
name: ${{ inputs.container }}-reports

.github/actions/eslint/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ runs:
1919
- uses: ./.github/actions/eslint-stylish-problem-matcher
2020
with:
2121
enable: false
22-
if: ${{ always() && steps.eslint-problem-matcher.outcome == 'success' }}
22+
if: ${{ !cancelled() && steps.eslint-problem-matcher.outcome == 'success' }}

.github/actions/flake8/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ runs:
1717
- uses: ./.github/actions/generic-problem-matcher
1818
with:
1919
enable: false
20-
if: ${{ always() && steps.flake8-problem-matcher.outcome == 'success' }}
20+
if: ${{ !cancelled() && steps.flake8-problem-matcher.outcome == 'success' }}

.github/actions/markdownlint/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ runs:
1717
- uses: ./.github/actions/generic-problem-matcher
1818
with:
1919
enable: false
20-
if: ${{ always() && steps.markdownlint-problem-matcher.outcome == 'success' }}
20+
if: ${{ !cancelled() && steps.markdownlint-problem-matcher.outcome == 'success' }}

.github/actions/meson-format/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ runs:
2020
- uses: ./.github/actions/generic-problem-matcher
2121
with:
2222
enable: false
23-
if: ${{ always() && steps.generic-problem-matcher.outcome == 'success' }}
23+
if: ${{ !cancelled() && steps.generic-problem-matcher.outcome == 'success' }}
2424

2525
- shell: bash
2626
run: |
@@ -32,4 +32,4 @@ runs:
3232
3333
- run: git reset --hard
3434
shell: bash
35-
if: always()
35+
if: ${{ !cancelled() }}

.github/actions/npm-install/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ runs:
1717
- uses: ./.github/actions/generic-problem-matcher
1818
with:
1919
enable: false
20-
if: ${{ always() && steps.npm-problem-matcher.outcome == 'success' }}
20+
if: ${{ !cancelled() && steps.npm-problem-matcher.outcome == 'success' }}

.github/actions/pict/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ runs:
2020
- uses: ./.github/actions/generic-problem-matcher
2121
with:
2222
enable: false
23-
if: ${{ always() && steps.generic-problem-matcher.outcome == 'success' }}
23+
if: ${{ !cancelled() && steps.generic-problem-matcher.outcome == 'success' }}
2424

2525
- shell: bash
2626
run: |
@@ -32,4 +32,4 @@ runs:
3232
3333
- run: git reset --hard
3434
shell: bash
35-
if: always()
35+
if: ${{ !cancelled() }}

.github/actions/pip-compile/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ runs:
2020
- uses: ./.github/actions/generic-problem-matcher
2121
with:
2222
enable: false
23-
if: ${{ always() && steps.generic-problem-matcher.outcome == 'success' }}
23+
if: ${{ !cancelled() && steps.generic-problem-matcher.outcome == 'success' }}
2424

2525
- shell: bash
2626
run: |
@@ -32,4 +32,4 @@ runs:
3232
3333
- run: git reset --hard
3434
shell: bash
35-
if: always()
35+
if: ${{ !cancelled() }}

.github/actions/reuse/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ runs:
1717
- uses: ./.github/actions/reuse-problem-matcher
1818
with:
1919
enable: false
20-
if: ${{ always() && steps.reuse-problem-matcher.outcome == 'success' }}
20+
if: ${{ !cancelled() && steps.reuse-problem-matcher.outcome == 'success' }}

.github/actions/tox-preinstall/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ runs:
2727
- uses: ./.github/actions/generic-problem-matcher
2828
with:
2929
enable: false
30-
if: ${{ always() && steps.tox-problem-matcher.outcome == 'success' }}
30+
if: ${{ !cancelled() && steps.tox-problem-matcher.outcome == 'success' }}

0 commit comments

Comments
 (0)