Skip to content

Commit d4bfc6d

Browse files
authored
chore: update cancel-on-failure jobs for default.yml (#5138)
1 parent 0783e80 commit d4bfc6d

16 files changed

+153
-96
lines changed

.github/actions/cancel-workflow/action.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Cancel Workflow
2+
3+
permissions:
4+
contents: read
5+
pull-requests: write
6+
actions: write
7+
8+
on:
9+
workflow_call:
10+
11+
jobs:
12+
cancel-workflow:
13+
name: Cancel Workflow
14+
runs-on: ubuntu-24.04 # Use Ubuntu 24.04 explicitly
15+
steps:
16+
- name: 💀 Killing me softly
17+
run: |
18+
gh run cancel ${{ github.run_id }}
19+
shell: bash
20+
env:
21+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/00-init.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,3 @@ jobs:
1919
env:
2020
ASSET_INIT_VECTOR: ${{ secrets.ASSET_INIT_VECTOR }}
2121
ASSET_PASSWORD: ${{ secrets.ASSET_PASSWORD }}
22-
23-
- name: 💀 Killing me softly
24-
uses: ./.github/actions/cancel-workflow
25-
if: failure()
26-
with:
27-
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/00-scan-secrets.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,3 @@ jobs:
2525
base: ""
2626
head: ${{ github.ref_name }}
2727
extra_args: --results=verified,unknown
28-
29-
- name: 💀 Killing me softly
30-
uses: ./.github/actions/cancel-workflow
31-
if: failure()
32-
with:
33-
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/01-build-outputs.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,3 @@ jobs:
6666
with:
6767
name: db-ux-outputs
6868
path: build-outputs
69-
70-
- name: 💀 Killing me softly
71-
uses: ./.github/actions/cancel-workflow
72-
if: failure()
73-
with:
74-
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/01-build-packages.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,3 @@ jobs:
5050
with:
5151
name: db-ux-stylelint-build
5252
path: packages/stylelint/build
53-
54-
- name: 💀 Killing me softly
55-
uses: ./.github/actions/cancel-workflow
56-
if: failure()
57-
with:
58-
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/01-build-patternhub.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,3 @@ jobs:
102102
with:
103103
name: db-ux-patternhub
104104
path: build-showcases/patternhub
105-
106-
- name: 💀 Killing me softly
107-
uses: ./.github/actions/cancel-workflow
108-
if: failure()
109-
with:
110-
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/01-build-showcases.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,3 @@ jobs:
5151
with:
5252
name: db-ux-${{ inputs.showcase }}
5353
path: build-showcases/${{ inputs.showcase }}
54-
55-
- name: 💀 Killing me softly
56-
uses: ./.github/actions/cancel-workflow
57-
if: failure()
58-
with:
59-
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/01-get-playwright-version.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,3 @@ jobs:
2929
run: |
3030
OUTPUT=$(npx --no tsx scripts/github/get-playwright-version.ts)
3131
echo "version=$OUTPUT" >> $GITHUB_OUTPUT
32-
33-
- name: 💀 Killing me softly
34-
uses: ./.github/actions/cancel-workflow
35-
if: failure()
36-
with:
37-
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/01-get-publish-version.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,3 @@ jobs:
6969
env:
7070
VALID_SEMVER_VERSION: ${{ steps.getVersion.outputs.version }}
7171
run: echo "$VALID_SEMVER_VERSION"
72-
73-
- name: 💀 Killing me softly
74-
uses: ./.github/actions/cancel-workflow
75-
if: failure()
76-
with:
77-
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)