This repository has been archived by the owner on Apr 2, 2024. It is now read-only.
release cf122392 #76
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
name: PR on Release Branch | |
on: | |
push: | |
branches: | |
- release_* | |
env: | |
BODY: PR Generated with a workflow | |
GH_TOKEN: ${{ github.token }} | |
jobs: | |
tag-release: | |
name: PR on Release Branch | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🧮 Checkout code | |
uses: actions/checkout@v3 | |
- name: Get branch name | |
id: branch-name | |
uses: tj-actions/branch-names@v6 | |
- name: Set env BODY | |
if: startsWith( steps.branch-name.outputs.current_branch, 'release_v_' ) | |
run: echo "BODY=PR Generated with a workflow. To auto-tag the branch for versioning remember to edit the merge commit message to match the branch name" >> "$GITHUB_ENV" | |
- name: Open PR | |
run: | | |
gh pr create -B main -H ${{steps.branch-name.outputs.current_branch}} -t ${{steps.branch-name.outputs.current_branch}} -b "${{env.BODY}}" |