Skip to content

Version tag to 1.24.0 #2

Version tag to 1.24.0

Version tag to 1.24.0 #2

Workflow file for this run

# 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@v4
-
name: Get tag
run: |
TAG=${GITHUB_REF##*/v}
if [[ "${TAG}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
DEST=$(echo ${TAG} | awk -F '[.]' '{print "release-"$1"."$2}')
else
DEST="main"
fi
echo "TAG=${TAG}" >> $GITHUB_ENV
echo "DEST=${DEST}" >> $GITHUB_ENV
-
name: Pull Request
id: open-pr
uses: repo-sync/[email protected]
with:
destination_branch: ${{ env.DEST }}
github_token: ${{ secrets.GITHUB_TOKEN }}
pr_body: "Automated PR. Will trigger the ${{ env.TAG }} release when approved."
pr_label: release
pr_title: "Version tag to ${{ env.TAG }}"