Skip to content

Commit 92a3d43

Browse files
authored
ci: add update-codeownders-from-packages.yaml (autowarefoundation#48)
Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>
1 parent b35a6c7 commit 92a3d43

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed

.github/CODEOWNERS-manual

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.github/* @autowarefoundation/autoware-maintainers

.github/sync-files.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
- source: .github/workflows/build-and-test-self-hosted.yaml
3737
- source: .github/workflows/check-build-depends.yaml
3838
- source: .github/workflows/clang-tidy-pr-comments.yaml
39+
- source: .github/workflows/update-codeowners-from-packages.yaml
3940
- source: codecov.yaml
4041

4142
- repository: autowarefoundation/autoware-documentation
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: update-codeowners-from-packages
2+
3+
on:
4+
schedule:
5+
- cron: 0 0 * * *
6+
workflow_dispatch:
7+
8+
jobs:
9+
check-secret:
10+
uses: autowarefoundation/autoware-github-actions/.github/workflows/check-secret.yaml@v1
11+
secrets:
12+
secret: ${{ secrets.APP_ID }}
13+
14+
update-codeowners-from-packages:
15+
needs: check-secret
16+
if: ${{ needs.check-secret.outputs.set == 'true' }}
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Generate token
20+
id: generate-token
21+
uses: tibdex/github-app-token@v1
22+
with:
23+
app_id: ${{ secrets.APP_ID }}
24+
private_key: ${{ secrets.PRIVATE_KEY }}
25+
26+
- name: Run update-codeowners-from-packages
27+
uses: autowarefoundation/autoware-github-actions/update-codeowners-from-packages@v1
28+
with:
29+
token: ${{ steps.generate-token.outputs.token }}
30+
pr-labels: |
31+
bot
32+
update-codeowners-from-packages
33+
auto-merge-method: squash

0 commit comments

Comments
 (0)