File tree 13 files changed +242
-10
lines changed
13 files changed +242
-10
lines changed File renamed without changes.
Original file line number Diff line number Diff line change
1
+ name : beta-to-tier4-main-sync
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ inputs :
6
+ source_branch :
7
+ description : Source branch
8
+ required : true
9
+ type : string
10
+
11
+ jobs :
12
+ sync-beta-branch :
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - name : Generate token
16
+ id : generate-token
17
+ uses : tibdex/github-app-token@v1
18
+ with :
19
+ app_id : ${{ secrets.APP_ID }}
20
+ private_key : ${{ secrets.PRIVATE_KEY }}
21
+
22
+ - name : Run sync-branches
23
+ uses : autowarefoundation/autoware-github-actions/sync-branches@v1
24
+ with :
25
+ token : ${{ steps.generate-token.outputs.token }}
26
+ base-branch : tier4/main
27
+ sync-pr-branch : beta-to-tier4-main-sync
28
+ sync-target-repository : https://github.com/tier4/autoware.universe.git
29
+ sync-target-branch : ${{ inputs.source_branch }}
30
+ pr-title : " chore: sync beta branch ${{ inputs.source_branch }} with tier4/main"
31
+ pr-labels : |
32
+ bot
33
+ sync-beta-branch
34
+ auto-merge-method : merge
Original file line number Diff line number Diff line change 15
15
runs-on : ubuntu-22.04
16
16
steps :
17
17
- name : Check out repository
18
- uses : actions/checkout@v3
18
+ uses : actions/checkout@v4
19
19
20
20
- name : Download analysis results
21
21
run : |
40
40
41
41
- name : Check out PR head
42
42
if : ${{ steps.check-fixes-yaml-existence.outputs.exists == 'true' }}
43
- uses : actions/checkout@v3
43
+ uses : actions/checkout@v4
44
44
with :
45
45
repository : ${{ steps.set-variables.outputs.pr-head-repo }}
46
46
ref : ${{ steps.set-variables.outputs.pr-head-ref }}
Original file line number Diff line number Diff line change 17
17
runs-on : ubuntu-22.04
18
18
steps :
19
19
- name : Check out repository
20
- uses : actions/checkout@v3
20
+ uses : actions/checkout@v4
21
21
22
22
- name : Download analysis results
23
23
run : |
41
41
42
42
- name : Check out PR head
43
43
if : ${{ steps.check-fixes-yaml-existence.outputs.exists == 'true' }}
44
- uses : actions/checkout@v3
44
+ uses : actions/checkout@v4
45
45
with :
46
46
repository : ${{ steps.set-variables.outputs.pr-head-repo }}
47
47
ref : ${{ steps.set-variables.outputs.pr-head-ref }}
Original file line number Diff line number Diff line change 14
14
runs-on : ubuntu-22.04
15
15
steps :
16
16
- name : Check out repository
17
- uses : actions/checkout@v3
17
+ uses : actions/checkout@v4
18
18
with :
19
19
fetch-depth : 0
20
20
Original file line number Diff line number Diff line change 34
34
runs-on : ubuntu-22.04
35
35
steps :
36
36
- name : Check out repository
37
- uses : actions/checkout@v3
37
+ uses : actions/checkout@v4
38
38
with :
39
39
fetch-depth : 0
40
40
ref : ${{ github.event.pull_request.head.sha }}
Original file line number Diff line number Diff line change
1
+ name : dispatch-push-event
2
+ on :
3
+ push :
4
+
5
+ jobs :
6
+ search-dispatch-repo :
7
+ runs-on : ubuntu-latest
8
+ strategy :
9
+ matrix :
10
+ include :
11
+ - { version: beta/v0.3.**, dispatch-repo: pilot-auto.x1.eve }
12
+ outputs :
13
+ dispatch-repo : ${{ steps.search-dispatch-repo.outputs.value }}
14
+ steps :
15
+ - name : Search dispatch repo
16
+ id : search-dispatch-repo
17
+ run : |
18
+ if [[ ${{ github.ref_name }} =~ ${{ matrix.version }} ]]; then
19
+ echo ::set-output name=value::"${{ matrix.dispatch-repo }}"
20
+ echo "Detected beta branch: ${{ github.ref_name }}"
21
+ echo "Dispatch repository: ${{ matrix.dispatch-repo }}"
22
+ fi
23
+
24
+ dispatch-push-event :
25
+ runs-on : ubuntu-latest
26
+ needs : search-dispatch-repo
27
+ if : ${{ needs.search-dispatch-repo.outputs.dispatch-repo != '' }}
28
+ steps :
29
+ - name : Generate token
30
+ id : generate-token
31
+ uses : tibdex/github-app-token@v1
32
+ with :
33
+ app_id : ${{ secrets.INTERNAL_APP_ID }}
34
+ private_key : ${{ secrets.INTERNAL_PRIVATE_KEY }}
35
+
36
+ # 注意: workflow_dispatchで指定するブランチはmain固定となっているため、dispatch-repoのmainブランチにupdate-beta-branch.yamlが存在することが前提条件。
37
+ - name : Dispatch the update-beta-branch workflow
38
+ run : |
39
+ curl -L \
40
+ -X POST \
41
+ -H "Accept: application/vnd.github+json" \
42
+ -H "Authorization: Bearer ${{ steps.generate-token.outputs.token }}" \
43
+ -H "X-GitHub-Api-Version: 2022-11-28" \
44
+ https://api.github.com/repos/tier4/${{ needs.search-dispatch-repo.outputs.dispatch-repo }}/actions/workflows/update-beta-branch.yaml/dispatches \
45
+ -d '{"ref":"main"}'
Original file line number Diff line number Diff line change
1
+ name : dispatch-release-note
2
+ on :
3
+ push :
4
+ branches :
5
+ - beta/v*
6
+ - tier4/main
7
+ tags :
8
+ - v*
9
+ workflow_dispatch :
10
+ inputs :
11
+ beta-branch-or-tag-name :
12
+ description : The name of the beta branch or tag to write release note
13
+ type : string
14
+ required : true
15
+ jobs :
16
+ dispatch-release-note :
17
+ runs-on : ubuntu-latest
18
+ name : release-repository-dispatch
19
+ steps :
20
+ - name : Set tag name
21
+ id : set-tag-name
22
+ run : |
23
+ if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
24
+ REF_NAME="${{ github.event.inputs.beta-branch-or-tag-name }}"
25
+ else
26
+ REF_NAME="${{ github.ref_name }}"
27
+ fi
28
+ echo ::set-output name=ref-name::"$REF_NAME"
29
+ echo ::set-output name=tag-name::"${REF_NAME#beta/}"
30
+
31
+ - name : Generate token
32
+ id : generate-token
33
+ uses : tibdex/github-app-token@v1
34
+ with :
35
+ app_id : ${{ secrets.APP_ID }}
36
+ private_key : ${{ secrets.PRIVATE_KEY }}
37
+
38
+ - name : Repository dispatch for release note
39
+ run : |
40
+ curl \
41
+ -X POST \
42
+ -H "Accept: application/vnd.github+json" \
43
+ -H "Authorization: token ${{ steps.generate-token.outputs.token }}" \
44
+ -H "X-GitHub-Api-Version: 2022-11-28" \
45
+ "https://api.github.com/repos/tier4/update-release-notes/dispatches" \
46
+ -d '{"event_type":"${{ steps.set-tag-name.outputs.ref-name }}"}'
Original file line number Diff line number Diff line change
1
+ name : slack-send
2
+ on :
3
+ workflow_run :
4
+ workflows :
5
+ - build-and-test
6
+ types :
7
+ - completed
8
+
9
+ jobs :
10
+ on-failure :
11
+ if : ${{ github.event.workflow_run.conclusion == 'failure' }}
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - name : Check out repository
15
+ uses : actions/checkout@v3
16
+
17
+ - name : Send to Slack workflow
18
+ uses : slackapi/slack-github-action@v1
19
+ with :
20
+ payload : |
21
+ {
22
+ "workflow-url": "${{ github.event.workflow_run.html_url }}"
23
+ }
24
+ env :
25
+ SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WORKFLOW_WEBHOOK_URL }}
Original file line number Diff line number Diff line change
1
+ name : sync-awf-latest
2
+
3
+ on :
4
+ schedule :
5
+ - cron : 50 */1 * * * # every 1 hour (**:50)
6
+ workflow_dispatch :
7
+
8
+ jobs :
9
+ sync-awf-latest :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - name : Generate token
13
+ id : generate-token
14
+ uses : tibdex/github-app-token@v1
15
+ with :
16
+ app_id : ${{ secrets.APP_ID }}
17
+ private_key : ${{ secrets.PRIVATE_KEY }}
18
+
19
+ - name : Run sync-branches
20
+ uses : autowarefoundation/autoware-github-actions/sync-branches@v1
21
+ with :
22
+ token : ${{ steps.generate-token.outputs.token }}
23
+ base-branch : awf-latest
24
+ sync-pr-branch : sync-awf-latest
25
+ sync-target-repository : https://github.com/autowarefoundation/autoware.universe.git
26
+ sync-target-branch : main
27
+ pr-title : " chore: sync awf-latest"
28
+ pr-labels : |
29
+ bot
30
+ auto-merge-method : merge
Original file line number Diff line number Diff line change
1
+ name : sync-upstream
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ inputs :
6
+ target_branch :
7
+ description : Target branch
8
+ required : true
9
+ type : string
10
+
11
+ jobs :
12
+ sync-upstream :
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - name : Generate token
16
+ id : generate-token
17
+ uses : tibdex/github-app-token@v1
18
+ with :
19
+ app_id : ${{ secrets.APP_ID }}
20
+ private_key : ${{ secrets.PRIVATE_KEY }}
21
+
22
+ - uses : actions/setup-node@v3
23
+ with :
24
+ node-version : 16
25
+
26
+ - run : npm install @holiday-jp/holiday_jp
27
+
28
+ - uses : actions/github-script@v6
29
+ id : is-holiday
30
+ with :
31
+ script : |
32
+ const holiday_jp = require(`${process.env.GITHUB_WORKSPACE}/node_modules/@holiday-jp/holiday_jp`)
33
+ core.setOutput('holiday', holiday_jp.isHoliday(new Date()));
34
+ - name : Print warning for invalid branch name
35
+ if : ${{ inputs.target_branch == 'tier4/main' }}
36
+ run : |
37
+ echo This action cannot be performed on 'tier4/main' branch
38
+
39
+ - name : Run sync-branches
40
+ if : ${{ inputs.target_branch != 'tier4/main' }}
41
+ uses : autowarefoundation/autoware-github-actions/sync-branches@v1
42
+ with :
43
+ token : ${{ steps.generate-token.outputs.token }}
44
+ base-branch : ${{ inputs.target_branch }}
45
+ sync-pr-branch : sync-upstream
46
+ sync-target-repository : https://github.com/tier4/autoware.universe.git
47
+ sync-target-branch : awf-latest
48
+ pr-title : " chore: sync tier4/autoware.universe:awf-latest"
49
+ auto-merge-method : merge
Original file line number Diff line number Diff line change @@ -41,6 +41,11 @@ repos:
41
41
hooks :
42
42
- id : yamllint
43
43
44
+ - repo : https://github.com/autowarefoundation/autoware-guideline-check
45
+ rev : 0.1.0
46
+ hooks :
47
+ - id : check-package-depends
48
+
44
49
- repo : https://github.com/tier4/pre-commit-hooks-ros
45
50
rev : v0.10.0
46
51
hooks :
74
79
args : [--line-length=100]
75
80
76
81
- repo : https://github.com/pre-commit/mirrors-clang-format
77
- rev : v19.1.5
82
+ rev : v19.1.6
78
83
hooks :
79
84
- id : clang-format
80
85
types_or : [c++, c, cuda]
Original file line number Diff line number Diff line change @@ -63,9 +63,7 @@ plugins:
63
63
module_name : mkdocs_macros
64
64
- mkdocs-video
65
65
- same-dir
66
- # https://squidfunk.github.io/mkdocs-material/plugins/search/#config.separator
67
- - search :
68
- separator : ' [\s\-_,:!=\[\]()"/]+|(?!\b)(?=[A-Z][a-z])|\.(?!\d)|&[lg]t;'
66
+ - search
69
67
70
68
markdown_extensions :
71
69
- abbr
You can’t perform that action at this time.
0 commit comments