Update to next release #6
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: Update to next release | |
on: | |
milestone: | |
types: [created] | |
permissions: | |
contents: read | |
jobs: | |
prepare: | |
runs-on: ubuntu-latest | |
if: contains(github.event.milestone.description, 'Release') | |
permissions: | |
pull-requests: write | |
contents: write | |
steps: | |
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 | |
with: | |
ref: master | |
- name: Create new release folder | |
run: | | |
name=$(echo ${{ github.event.milestone.due_on }} | cut -d- -f-2) | |
cd scripts | |
./applyTemplate.sh ${{ github.event.milestone.title }} $name | |
- name: Create Pull Request for Release ${{ github.event.milestone.title }} | |
uses: peter-evans/create-pull-request@38e0b6e68b4c852a5500a94740f0e535e0d7ba54 # v4.2.4 | |
with: | |
commit-message: Prepare Release ${{ github.event.milestone.title }} | |
branch: prepare_R${{ github.event.milestone.title }} | |
title: Prepare Release ${{ github.event.milestone.title }} | |
body: A new Release Milstone was created, please review the changes and merge if appropriate. | |
delete-branch: true | |
milestone: ${{ github.event.milestone.number }} | |