blob: 305d5807684f27fffb48f5876d1c2b2a6b81f4fc (
about) (
plain)
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
34
35
36
37
38
39
40
|
name: "Draft new release"
on:
milestone:
types: [closed]
jobs:
draft-new-release:
name: "Draft a new release"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@c952173edf28a2bd22e1a4926590c1ac39630461
with:
ref: 'release'
- name: Extract version from milestone
run: |
VERSION="${{ github.event.milestone.title }}"
echo "RELEASE_VERSION=${VERSION/v/}" >> $GITHUB_ENV
- name: Update changelog
uses: thomaseizinger/keep-a-changelog-new-release@1.1.0
with:
version: ${{ env.RELEASE_VERSION }}
- name: Initialize git config and commit changes
run: |
git config user.name "GitHub Actions"
git config user.email noreply@github.com
- name: Create Pull Request
uses: peter-evans/create-pull-request@c7f493a8000b8aeb17a1332e326ba76b57cb83eb
with:
author: GitHub Actions <noreply@github.com>
base: release
body: This is an automated pull request to bump the changelog for the v${{ env.RELEASE_VERSION }} release.
branch: release-${{ env.RELEASE_VERSION }}
commit-message: "CHANGELOG: bump for ${{ env.RELEASE_VERSION }}"
draft: true
title: Release v${{ env.RELEASE_VERSION }}
token: ${{ secrets.GITHUB_TOKEN }}
|