-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add workflow for updating codeowners
Signed-off-by: Ryohsuke Mitsudome <[email protected]>
- Loading branch information
1 parent
7cb5c90
commit 4567cd3
Showing
1 changed file
with
33 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,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: | | ||
tag:bot | ||
tag:update-codeowners-from-packages | ||
auto-merge-method: squash |