fix: ready-to-release workflow #5
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: 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 |