Skip to content

Commit

Permalink
feat: add workflow for updating codeowners
Browse files Browse the repository at this point in the history
Signed-off-by: Ryohsuke Mitsudome <[email protected]>
  • Loading branch information
mitsudome-r committed Mar 1, 2024
1 parent 7cb5c90 commit 4567cd3
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/update-codeowners-from-packages.yaml
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

0 comments on commit 4567cd3

Please sign in to comment.