Skip to content

trigger:

trigger: #6

# 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)"