File tree Expand file tree Collapse file tree 8 files changed +32
-28
lines changed
Expand file tree Collapse file tree 8 files changed +32
-28
lines changed Original file line number Diff line number Diff 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
2025env :
2126 CARGO_TERM_COLOR : always
2227 # set this to true in GitHub variables to enable building the container
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-
3635jobs :
3736 repo-has-container :
3837 name : Repo has container?
Original file line number Diff line number Diff line change 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+
915permissions :
1016 contents : read
1117 checks : write
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-
2929jobs :
3030 cleanup :
3131 name : Cleanup
Original file line number Diff line number Diff 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+
1518jobs :
1619 lint :
1720 name : Lint
Original file line number Diff line number Diff line change 99 branches :
1010 - main
1111
12+ env :
13+ NPM_CONFIG_FUND : " false"
14+
1215jobs :
1316 prettier :
1417 name : Prettier
Original file line number Diff line number Diff line change 11name : Publish crate
2-
3- concurrency :
4- group : " ${{ github.workflow }}"
5- cancel-in-progress : false # last one must win in case of multiple releases
6-
72on :
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+
1211permissions :
1312 contents : read
1413
Original file line number Diff line number Diff line change 11name : Release
22
3+ on :
4+ workflow_dispatch : # releasing is manual as we don't want to release every time
5+
36concurrency :
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-
1010permissions :
1111 contents : write # to write tags
1212 packages : write # to write tags to Docker registry
Original file line number Diff line number Diff line change 11name : 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-
73on :
84 # Triggers the workflow pushes to main. They can be either direct pushes, or PRs being merged
95 push :
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+
2222permissions :
2323 contents : write
2424 packages : write
Original file line number Diff line number Diff line change 11name : 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-
73on :
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+
1212permissions :
1313 contents : write
1414 packages : write
You can’t perform that action at this time.
0 commit comments