chore(main): [bot] release base-cluster:7.1.1 (#1268) #975
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
name: Update CODEOWNERS | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
generateCodeowners: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- name: generate CODEOWNERS | |
run: ./.github/scripts/sync-codeowners.sh > .github/CODEOWNERS | |
- name: Create PR | |
id: create-pr | |
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7 | |
with: | |
token: ${{ secrets.ACTIONS_BOT_TOKEN }} # otherwise downstream workflows are not being run | |
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 |