Skip to content

fix: ready-to-release workflow #5

fix: ready-to-release workflow

fix: ready-to-release workflow #5

name: Ready to Release
on:
push:
branches:
- release-**
jobs:
create-pull-requests-for-release:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Create the release PR
run: |
gh pr create \
--base main \
--assignee ${{ github.actor }} \
--title "Release ${GITHUB_REF_NAME#release-}" \
--body "" \
--label "release"
if [ $? -ne 0 ]; then
echo "The release PR already exists."
fi
- name: Create the release PR to develop
run: |
gh pr create \
--base develop \
--assignee ${{ github.actor }} \
--fill \
--label "ignore-for-release"
if [ $? -ne 0 ]; then
echo "The release PR to develop already exists."
fi