Skip to content

Commit b4cd333

Browse files
committed
ci(audits): concurrency and dont rerun
1 parent ca2c0b1 commit b4cd333

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/audits.yml

+24
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,28 @@ on:
88
branches:
99
- main
1010

11+
concurrency:
12+
group: examples-${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
1115
jobs:
16+
head-commit:
17+
name: Inspect head commit
18+
runs-on: ubuntu-latest
19+
outputs:
20+
message: ${{ steps.commit.outputs.message }}
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
with:
25+
ref: ${{github.event.pull_request.head.sha || github.sha}}
26+
- name: Inspect
27+
id: commit
28+
run: echo "message=$(git show -s --format=%s)" >> "$GITHUB_OUTPUT"
29+
1230
javascript:
31+
needs: [head-commit]
32+
if: "${{needs.head-commit.outputs.message != 'docs(examples): converted from e2es'}}"
1333
name: JavaScript
1434
runs-on: ubuntu-latest
1535
strategy:
@@ -56,6 +76,8 @@ jobs:
5676
implementations/${{ matrix.workspace }}/report.json
5777
5878
docker:
79+
needs: [head-commit]
80+
if: "${{needs.head-commit.outputs.message != 'docs(examples): converted from e2es'}}"
5981
name: Docker
6082
runs-on: ubuntu-latest
6183
strategy:
@@ -111,6 +133,8 @@ jobs:
111133
implementations/${{ matrix.workspace }}/report.json
112134
113135
url:
136+
needs: [head-commit]
137+
if: "${{needs.head-commit.outputs.message != 'docs(examples): converted from e2es'}}"
114138
name: URL
115139
runs-on: ubuntu-latest
116140
strategy:

0 commit comments

Comments
 (0)