Skip to content

#488 #494 done

#488 #494 done #190

Workflow file for this run

name: Merge release notes, create release branch
on:
pull_request:
types: [opened]
jobs:
make-release-branch:
runs-on: ubuntu-latest
if: ${{ startsWith(github.event.pull_request.title, 'Release notes for version') && startsWith(github.event.pull_request.head.ref, 'notes-') }}
timeout-minutes: 30
steps:
- id: version
run: |
set -x
echo "::set-output name=version::`echo '${{ github.event.pull_request.head.ref }}' | cut -d'-' -f2`"
- name: Merge PR
uses: UnforgivenPL/merge-pr@v2
with:
repository: ${{ github.repository }}
token: ${{ secrets.GITHUB_TOKEN }}
pr: ${{ github.event.number }}
delay: 300
must-have-labels: release
- name: Create release branch
uses: UnforgivenPL/push-branch@v2
with:
repository: ${{ github.repository }}
token: ${{ secrets.ACTIONS_PAT }}
source: development
target: release-${{ steps.version.outputs.version }}