forked from autowarefoundation/autoware.universe
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add update-codeownders-from-packages.yaml (autowarefoundation#1619)
Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>
- Loading branch information
1 parent
8e38ce3
commit b74f4b1
Showing
3 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.github/* @autowarefoundation/autoware-maintainers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: update-codeowners-from-packages | ||
|
||
on: | ||
schedule: | ||
- cron: 0 0 * * * | ||
workflow_dispatch: | ||
|
||
jobs: | ||
check-secret: | ||
uses: autowarefoundation/autoware-github-actions/.github/workflows/check-secret.yaml@v1 | ||
secrets: | ||
secret: ${{ secrets.APP_ID }} | ||
|
||
update-codeowners-from-packages: | ||
needs: check-secret | ||
if: ${{ needs.check-secret.outputs.set == 'true' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Generate token | ||
id: generate-token | ||
uses: tibdex/github-app-token@v1 | ||
with: | ||
app_id: ${{ secrets.APP_ID }} | ||
private_key: ${{ secrets.PRIVATE_KEY }} | ||
|
||
- name: Run update-codeowners-from-packages | ||
uses: autowarefoundation/autoware-github-actions/update-codeowners-from-packages@v1 | ||
with: | ||
token: ${{ steps.generate-token.outputs.token }} | ||
pr-labels: | | ||
bot | ||
update-codeowners-from-packages | ||
auto-merge-method: squash |