Skip to content

Commit 4508ac5

Browse files
github-actionsgithub-actions[bot]
authored andcommitted
chore: sync files
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 8c09ffc commit 4508ac5

15 files changed

+74
-34
lines changed

.github/workflows/cancel-previous-workflows.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# https://github.com/autowarefoundation/sync-file-templates
33
# To make changes, update the source repository and follow the guidelines in its README.
44

5+
# Deprecated: Use concurrency in each workflow instead.
6+
57
name: cancel-previous-workflows
68

79
on:

.github/workflows/clang-tidy-pr-comments-manually.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ on:
1010
workflow_run_id_or_url:
1111
description: The target workflow run ID or URL of the build-and-test-differential workflow
1212
required: true
13+
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
16+
cancel-in-progress: true
17+
1318
jobs:
1419
clang-tidy-pr-comments-manually:
1520
runs-on: ubuntu-22.04

.github/workflows/clang-tidy-pr-comments.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on:
1111
types:
1212
- completed
1313

14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
16+
cancel-in-progress: true
17+
1418
jobs:
1519
clang-tidy-pr-comments:
1620
if: ${{ github.event.workflow_run.event == 'pull_request' && contains(fromJson('["success", "failure"]'), github.event.workflow_run.conclusion) }}

.github/workflows/delete-closed-pr-docs.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
- cron: 0 0 * * *
1010
workflow_dispatch:
1111

12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
1216
jobs:
1317
delete-closed-pr-docs:
1418
runs-on: ubuntu-22.04

.github/workflows/deploy-docs.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,19 @@ on:
2222
- labeled
2323
workflow_dispatch:
2424

25+
concurrency:
26+
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
27+
cancel-in-progress: true
28+
2529
jobs:
26-
prevent-no-label-execution:
27-
uses: autowarefoundation/autoware-github-actions/.github/workflows/prevent-no-label-execution.yaml@v1
30+
make-sure-label-is-present:
31+
uses: autowarefoundation/autoware-github-actions/.github/workflows/make-sure-label-is-present.yaml@v1
2832
with:
2933
label: run:deploy-docs
3034

3135
deploy-docs:
32-
needs: prevent-no-label-execution
33-
if: ${{ needs.prevent-no-label-execution.outputs.run == 'true' }}
36+
needs: make-sure-label-is-present
37+
if: ${{ needs.make-sure-label-is-present.outputs.result == 'true' }}
3438
runs-on: ubuntu-22.04
3539
steps:
3640
- name: Check out repository

.github/workflows/github-release.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ on:
1515
type: string
1616
required: true
1717

18+
concurrency:
19+
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
20+
cancel-in-progress: true
21+
1822
jobs:
1923
github-release:
2024
runs-on: ubuntu-22.04
@@ -60,7 +64,7 @@ jobs:
6064
run: |
6165
gh release ${{ steps.select-verb.outputs.verb }} "${{ steps.set-tag-name.outputs.tag-name }}" \
6266
--draft \
63-
--title "Release ${{ steps.set-tag-name.outputs.tag-name }}" \
67+
--title "${{ steps.set-tag-name.outputs.tag-name }}" \
6468
--notes "$NOTES"
6569
env:
6670
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/pre-commit-autoupdate.yaml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,12 @@ on:
99
- cron: 0 0 1 1,4,7,10 * # quarterly
1010
workflow_dispatch:
1111

12-
jobs:
13-
check-secret:
14-
uses: autowarefoundation/autoware-github-actions/.github/workflows/check-secret.yaml@v1
15-
secrets:
16-
secret: ${{ secrets.APP_ID }}
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
14+
cancel-in-progress: true
1715

16+
jobs:
1817
pre-commit-autoupdate:
19-
needs: check-secret
20-
if: ${{ needs.check-secret.outputs.set == 'true' }}
2118
runs-on: ubuntu-22.04
2219
steps:
2320
- name: Generate token

.github/workflows/pre-commit.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ name: pre-commit
77
on:
88
pull_request:
99

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
1014
jobs:
1115
pre-commit:
1216
if: ${{ github.event.repository.private }} # Use pre-commit.ci for public repositories

.github/workflows/spell-check-daily.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
- cron: 0 0 * * *
1010
workflow_dispatch:
1111

12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
1216
jobs:
1317
spell-check-daily:
1418
runs-on: ubuntu-22.04
@@ -21,7 +25,7 @@ jobs:
2125
with:
2226
local-cspell-json: .cspell.json
2327
incremental-files-only: false
24-
cspell-json-url: https://raw.githubusercontent.com/tier4/autoware-spell-check-dict/main/.cspell.json
28+
cspell-json-url: https://raw.githubusercontent.com/autowarefoundation/autoware-spell-check-dict/main/.cspell.json
2529
dict-packages: |
2630
https://github.com/autowarefoundation/autoware-spell-check-dict
2731
https://github.com/tier4/cspell-dicts

.github/workflows/spell-check-differential.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ name: spell-check-differential
77
on:
88
pull_request:
99

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
1014
jobs:
1115
spell-check-differential:
1216
runs-on: ubuntu-22.04

0 commit comments

Comments
 (0)