-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (31 loc) · 1.04 KB
/
update-codeowners.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Update CODEOWNERS
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches:
- main
jobs:
generateCodeowners:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
- name: generate CODEOWNERS
run: ./.github/scripts/sync-codeowners.sh > .github/CODEOWNERS
- name: Create PR
id: create-pr
uses: peter-evans/create-pull-request@6d6857d36972b65feb161a90e484f2984215f83e # v6
with:
add-paths: |
.github/CODEOWNERS
commit-message: "ci: [bot] Update 'CODEOWNERS'"
branch: ci/update-codeowners
title: "ci: Update CODEOWNERS"
- name: Set PR to auto-merge
if: ${{ steps.create-pr.outputs.pull-request-number }}
run: gh pr merge --auto --squash "$PR_NUMBER"
env:
GH_TOKEN: ${{ secrets.ACTIONS_BOT_TOKEN }}
PR_NUMBER: ${{ steps.create-pr.outputs.pull-request-number }}
merge-method: squash