update_codeowners.yml (1222B)
1 name: update codeowners 2 on: 3 schedule: 4 - cron: 0 0 * * * 5 workflow_dispatch: 6 jobs: 7 update: 8 runs-on: ubuntu-24.04 9 if: github.repository == 'web-platform-tests/wpt' 10 steps: 11 - name: Set up Python 12 uses: actions/setup-python@v5 13 with: 14 python-version: '3.12' 15 - name: Checkout wpt 16 uses: actions/checkout@v4 17 with: 18 path: wpt 19 - name: Checkout wpt-metadata 20 uses: actions/checkout@v4 21 with: 22 path: wpt-metadata 23 repository: web-platform-tests/wpt-metadata 24 - name: Update codeowners 25 run: | 26 cd wpt 27 ./wpt update-codeowners ../wpt-metadata 28 - name: Commit and create pull request 29 uses: peter-evans/create-pull-request@v6 30 with: 31 token: ${{ secrets.GITHUB_TOKEN }} 32 author: wpt-pr-bot <wpt-pr-bot@users.noreply.github.com> 33 commit-message: Automated update of CODEOWNERS 34 title: Update CODEOWNERS 35 body: | 36 This automated pull request updates CODEOWNERS 37 38 See the [workflow](https://github.com/web-platform-tests/wpt/blob/master/.github/workflows/update_codeowners.yml) for how this pull request was created. 39 branch: actions/update-codeowners