forked from eclipse-platform/www.eclipse.org-eclipse
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (31 loc) · 1.16 KB
/
updateRelease.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
with:
ref: master
- name: Create new release folder
run: |
name=$(echo ${{ github.event.milestone.due_on }} | cut -d- -f-2)
cd news/scripts
./applyTemplate.sh ${{ github.event.milestone.title }} $name
- name: Create Pull Request for Release ${{ github.event.milestone.title }}
uses: peter-evans/create-pull-request@6d6857d36972b65feb161a90e484f2984215f83e # v6.0.5
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 }}