trigger: #6
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 or update merge-to-master pull requests for production releases | |
name: Release | |
on: | |
push: | |
branches: | |
- develop | |
- sh51/create-release-pr-action | |
jobs: | |
pull_request: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Create or update PR | |
env: | |
GH_TOKEN: ${{ github.token }} | |
run: | | |
gh_pr_up() { IFS=$'\n'; gh pr create $* || gh pr edit $*; } | |
gh_pr_up --base master --head develop --title "Merge Develop into Master" --body "This PR was auto-generated on $(date +%d-%m-%Y)" |