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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
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@c5a7806660adbe173f04e3e038b0ccdcd758773c # v6.1.0
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 }}