Skip to content

Commit cd283f4

Browse files
chore: shuffle stuff around
1 parent 98ec6b6 commit cd283f4

File tree

8 files changed

+32
-28
lines changed

8 files changed

+32
-28
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ permissions:
1717
packages: write
1818
pull-requests: write
1919

20+
concurrency:
21+
# each new commit to a PR runs this workflow
22+
# so we need to avoid a long running older one from overwriting the "pr-<number>-latest"
23+
group: "${{ github.workflow }} @ ${{ github.ref_name }}"
24+
cancel-in-progress: true
2025
env:
2126
CARGO_TERM_COLOR: always
2227
# set this to true in GitHub variables to enable building the container
@@ -27,12 +32,6 @@ env:
2732
IMAGE_NAME: ${{ github.repository }}
2833
RUSTFLAGS: --deny=warnings
2934

30-
concurrency:
31-
# each new commit to a PR runs this workflow
32-
# so we need to avoid a long running older one from overwriting the "pr-<number>-latest"
33-
group: "${{ github.workflow }} @ ${{ github.ref_name }}"
34-
cancel-in-progress: true
35-
3635
jobs:
3736
repo-has-container:
3837
name: Repo has container?

.github/workflows/cleanup-pr-images.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ on:
66
branches:
77
- main
88

9+
concurrency:
10+
# each new commit to a PR runs this workflow
11+
# so we need to avoid a long running older one from overwriting the "pr-<number>-latest"
12+
group: "${{ github.workflow }} @ ${{ github.event.pull_request.head.label }}"
13+
cancel-in-progress: true
14+
915
permissions:
1016
contents: read
1117
checks: write
@@ -20,12 +26,6 @@ env:
2026
# github.repository as <account>/<repo>
2127
IMAGE_NAME: ${{ github.repository }}
2228

23-
concurrency:
24-
# each new commit to a PR runs this workflow
25-
# so we need to avoid a long running older one from overwriting the "pr-<number>-latest"
26-
group: "${{ github.workflow }} @ ${{ github.event.pull_request.head.label }}"
27-
cancel-in-progress: true
28-
2929
jobs:
3030
cleanup:
3131
name: Cleanup

.github/workflows/lint-commits.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ concurrency:
1212
group: "${{ github.workflow }} @ ${{ github.ref_name }}"
1313
cancel-in-progress: true
1414

15+
env:
16+
CARGO_TERM_COLOR: always
17+
1518
jobs:
1619
lint:
1720
name: Lint

.github/workflows/prettier.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
branches:
1010
- main
1111

12+
env:
13+
NPM_CONFIG_FUND: "false"
14+
1215
jobs:
1316
prettier:
1417
name: Prettier

.github/workflows/publish-crate-after-release.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
name: Publish crate
2-
3-
concurrency:
4-
group: "${{ github.workflow }}"
5-
cancel-in-progress: false # last one must win in case of multiple releases
6-
72
on:
83
push:
94
tags:
105
- "v[0-9]+.[0-9]+.[0-9]+"
116

7+
concurrency:
8+
group: "${{ github.workflow }}"
9+
cancel-in-progress: false # last one must win in case of multiple releases
10+
1211
permissions:
1312
contents: read
1413

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
name: Release
22

3+
on:
4+
workflow_dispatch: # releasing is manual as we don't want to release every time
5+
36
concurrency:
47
group: "${{ github.workflow }}"
58
cancel-in-progress: true # only last step is important, which runs or doesn't
69

7-
on:
8-
workflow_dispatch: # releasing is manual as we don't want to release every time
9-
1010
permissions:
1111
contents: write # to write tags
1212
packages: write # to write tags to Docker registry

.github/workflows/retag-containers-after-push.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
name: Retag containers after new push / PR
22

3-
concurrency:
4-
group: "${{ github.workflow }}" # last one must win
5-
cancel-in-progress: false # no we need them
6-
73
on:
84
# Triggers the workflow pushes to main. They can be either direct pushes, or PRs being merged
95
push:
@@ -19,6 +15,10 @@ on:
1915
# when with git rev-parse HEAD^2 we can find the incoming PR's head
2016
# Problem solved
2117

18+
concurrency:
19+
group: "${{ github.workflow }}" # last one must win
20+
cancel-in-progress: false # no we need them
21+
2222
permissions:
2323
contents: write
2424
packages: write

.github/workflows/retag-containers-after-release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
name: Update semantic tags on repo & image after release
22

3-
concurrency:
4-
group: "${{ github.workflow }}"
5-
cancel-in-progress: false # last one must win in case of multiple releases
6-
73
on:
84
push:
95
tags:
106
- "v[0-9]+.[0-9]+.[0-9]+"
117

8+
concurrency:
9+
group: "${{ github.workflow }}"
10+
cancel-in-progress: false # last one must win in case of multiple releases
11+
1212
permissions:
1313
contents: write
1414
packages: write

0 commit comments

Comments
 (0)