Release cloudnative-pg-v0.19.1 #44
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 | |
name: release-pr | |
on: | |
push: | |
branches: | |
- release/*-v* | |
jobs: | |
pull-request: | |
runs-on: ubuntu-22.04 | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- | |
name: Get tag | |
run: | | |
echo "TAG=${GITHUB_REF##*/}" >> $GITHUB_ENV | |
- | |
name: Pull Request | |
id: open-pr | |
uses: repo-sync/pull-request@7e79a9f5dc3ad0ce53138f01df2fad14a04831c5 # v2.12.1 | |
with: | |
destination_branch: "main" | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
pr_body: "Automated PR. Will trigger the ${{ env.TAG }} release when approved." | |
pr_label: release | |
pr_title: "Release ${{ env.TAG }}" | |