File tree Expand file tree Collapse file tree 10 files changed +44
-24
lines changed
Expand file tree Collapse file tree 10 files changed +44
-24
lines changed Original file line number Diff line number Diff line change 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+
57name : cancel-previous-workflows
68
79on :
Original file line number Diff line number Diff line change 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+
1216jobs :
1317 delete-closed-pr-docs :
1418 runs-on : ubuntu-22.04
Original file line number Diff line number Diff line change 88 push :
99 branches :
1010 - main
11- - galactic
1211 paths :
1312 - mkdocs.yaml
1413 - " **/*.md"
2221 - labeled
2322 workflow_dispatch :
2423
24+ concurrency :
25+ group : ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
26+ cancel-in-progress : true
27+
2528jobs :
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
Original file line number Diff line number Diff line change 1515 type : string
1616 required : true
1717
18+ concurrency :
19+ group : ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
20+ cancel-in-progress : true
21+
1822jobs :
1923 github-release :
2024 runs-on : ubuntu-22.04
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 }}
Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ name: pre-commit-optional
77on :
88 pull_request :
99
10+ concurrency :
11+ group : ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
12+ cancel-in-progress : true
13+
1014jobs :
1115 pre-commit-optional :
1216 runs-on : ubuntu-22.04
Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ name: pre-commit
77on :
88 pull_request :
99
10+ concurrency :
11+ group : ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
12+ cancel-in-progress : true
13+
1014jobs :
1115 pre-commit :
1216 if : ${{ github.event.repository.private }} # Use pre-commit.ci for public repositories
Original file line number Diff line number Diff line change 99 - cron : 0 0 * * *
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 sync-files :
19- needs : check-secret
20- if : ${{ needs.check-secret.outputs.set == 'true' }}
2118 runs-on : ubuntu-22.04
2219 steps :
2320 - name : Generate token
Original file line number Diff line number Diff line change 55# https://pre-commit.ci/#configuration
66ci :
77 autofix_commit_msg : " style(pre-commit-optional): autofix"
8- # we already have our own daily update mechanism, we set this to quarterly
98 autoupdate_schedule : quarterly
109 autoupdate_commit_msg : " ci(pre-commit-optional): quarterly autoupdate"
1110
1211repos :
1312 - repo : https://github.com/tcort/markdown-link-check
14- rev : v3.13.7
13+ rev : v3.14.2
1514 hooks :
1615 - id : markdown-link-check
1716 args : [--quiet, --config=.markdown-link-check.json]
Original file line number Diff line number Diff line change 55# https://pre-commit.ci/#configuration
66ci :
77 autofix_commit_msg : " style(pre-commit): autofix"
8- # we already have our own daily update mechanism, we set this to quarterly
98 autoupdate_schedule : quarterly
109 autoupdate_commit_msg : " ci(pre-commit): quarterly autoupdate"
1110
2625 args : [--markdown-linebreak-ext=md]
2726
2827 - repo : https://github.com/igorshubovych/markdownlint-cli
29- rev : v0.45 .0
28+ rev : v0.47 .0
3029 hooks :
3130 - id : markdownlint
3231 args : [-c, .markdownlint.yaml, --fix]
@@ -35,9 +34,10 @@ repos:
3534 rev : v4.0.0-alpha.8
3635 hooks :
3736 - id : prettier
37+ args : [--no-error-on-unmatched-pattern]
3838
3939 - repo : https://github.com/adrienverge/yamllint
40- rev : v1.37.1
40+ rev : v1.38.0
4141 hooks :
4242 - id : yamllint
4343
4747 - id : check-package-depends
4848
4949 - repo : https://github.com/tier4/pre-commit-hooks-ros
50- rev : v0.10.0
50+ rev : v0.10.2
5151 hooks :
5252 - id : flake8-ros
5353 - id : prettier-xacro
@@ -68,18 +68,19 @@ repos:
6868 args : [-w, -s, -i=4]
6969
7070 - repo : https://github.com/pycqa/isort
71- rev : 6.1 .0
71+ rev : 7.0 .0
7272 hooks :
7373 - id : isort
74+ args : [--profile=black, --line-length=100]
7475
7576 - repo : https://github.com/psf/black-pre-commit-mirror
76- rev : 25.9 .0
77+ rev : 26.1 .0
7778 hooks :
7879 - id : black
7980 args : [--line-length=100]
8081
8182 - repo : https://github.com/pre-commit/mirrors-clang-format
82- rev : v21.1.2
83+ rev : v21.1.8
8384 hooks :
8485 - id : clang-format
8586 types_or : [c++, c, cuda]
9293 exclude : .cu
9394
9495 - repo : https://github.com/python-jsonschema/check-jsonschema
95- rev : 0.34.0
96+ rev : 0.36.2
9697 hooks :
9798 - id : check-metaschema
9899 files : ^.+/schema/.*schema\.json$
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ extra_css:
5050
5151extra_javascript :
5252 - docs/assets/js/mathjax.js
53- - https://polyfill.io /v3/polyfill.min.js?features=es6
53+ - https://cdnjs.cloudflare.com/polyfill /v3/polyfill.min.js?features=es6
5454 - https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
5555
5656plugins :
@@ -97,6 +97,8 @@ markdown_extensions:
9797 - name : mermaid
9898 class : mermaid
9999 format : !!python/name:pymdownx.superfences.fence_code_format
100+ - pymdownx.tasklist :
101+ custom_checkbox : true
100102 - toc :
101103 permalink : " #"
102104 toc_depth : 3
You can’t perform that action at this time.
0 commit comments