Release cloudnative-pg-v0.21.3 #69
Workflow file for this run
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
## | |
# Create a PR for a release when a commit is pushed on a release/*-v* branch to support the releases of both the | |
# operator and cluster charts | |
name: release-pr | |
on: | |
push: | |
branches: | |
- release/*-v* | |
permissions: | |
pull-requests: write | |
jobs: | |
create-pull-request: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | |
- name: Create Pull Request | |
id: create-pr | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
TAG="${GITHUB_REF##*/}" | |
TITLE="Release ${TAG}" | |
BODY="Automated PR. Will trigger the ${TAG} release when approved." | |
LABEL=release | |
ASSIGNEE=${{ github.actor }} | |
gh pr create --title "${TITLE}" --body "${BODY}" --label "${LABEL}" --assignee "${ASSIGNEE}" || | |
gh pr edit --title "${TITLE}" --body "${BODY}" --add-label "${LABEL}" |