Skip to content

Commit 371c399

Browse files
tier4-autoware-public-bot[bot]github-actions
andauthored
chore: sync files (#34)
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions <github-actions@github.com>
1 parent 8c09ffc commit 371c399

15 files changed

+78
-42
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 & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ on:
88
push:
99
branches:
1010
- main
11-
- galactic
1211
paths:
1312
- mkdocs.yaml
1413
- "**/*.md"
@@ -22,15 +21,19 @@ on:
2221
- labeled
2322
workflow_dispatch:
2423

24+
concurrency:
25+
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
26+
cancel-in-progress: true
27+
2528
jobs:
26-
prevent-no-label-execution:
27-
uses: autowarefoundation/autoware-github-actions/.github/workflows/prevent-no-label-execution.yaml@v1
29+
make-sure-label-is-present:
30+
uses: autowarefoundation/autoware-github-actions/.github/workflows/make-sure-label-is-present.yaml@v1
2831
with:
2932
label: run:deploy-docs
3033

3134
deploy-docs:
32-
needs: prevent-no-label-execution
33-
if: ${{ needs.prevent-no-label-execution.outputs.run == 'true' }}
35+
needs: make-sure-label-is-present
36+
if: ${{ github.event_name != 'pull_request_target' || needs.make-sure-label-is-present.outputs.result == 'true' }}
3437
runs-on: ubuntu-22.04
3538
steps:
3639
- 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: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,21 @@
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: Consider removing this workflow if your `.pre-commit-config.yaml` is synced.
6+
57
name: pre-commit-autoupdate
68

79
on:
810
schedule:
911
- cron: 0 0 1 1,4,7,10 * # quarterly
1012
workflow_dispatch:
1113

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

18+
jobs:
1819
pre-commit-autoupdate:
19-
needs: check-secret
20-
if: ${{ needs.check-secret.outputs.set == 'true' }}
2120
runs-on: ubuntu-22.04
2221
steps:
2322
- 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 & 2 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
spell-check-daily:
1418
runs-on: ubuntu-22.04
@@ -19,9 +23,8 @@ jobs:
1923
- name: Run spell-check
2024
uses: autowarefoundation/autoware-github-actions/spell-check@v1
2125
with:
22-
local-cspell-json: .cspell.json
2326
incremental-files-only: false
24-
cspell-json-url: https://raw.githubusercontent.com/tier4/autoware-spell-check-dict/main/.cspell.json
27+
cspell-json-url: https://raw.githubusercontent.com/autowarefoundation/autoware-spell-check-dict/main/.cspell.json
2528
dict-packages: |
2629
https://github.com/autowarefoundation/autoware-spell-check-dict
2730
https://github.com/tier4/cspell-dicts

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

Lines changed: 4 additions & 1 deletion
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
@@ -17,7 +21,6 @@ jobs:
1721
- name: Run spell-check
1822
uses: autowarefoundation/autoware-github-actions/spell-check@v1
1923
with:
20-
local-cspell-json: .cspell.json
2124
cspell-json-url: https://raw.githubusercontent.com/autowarefoundation/autoware-spell-check-dict/main/.cspell.json
2225
dict-packages: |
2326
https://github.com/autowarefoundation/autoware-spell-check-dict

0 commit comments

Comments
 (0)