2020-06-18 06:31:18 +00:00
|
|
|
name: "Draft new release"
|
|
|
|
|
|
|
|
on:
|
|
|
|
milestone:
|
|
|
|
types: [closed]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
draft-new-release:
|
|
|
|
name: "Draft a new release"
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2020-10-23 09:33:45 +00:00
|
|
|
- uses: actions/checkout@c952173edf28a2bd22e1a4926590c1ac39630461
|
2020-06-24 18:51:05 +00:00
|
|
|
with:
|
|
|
|
ref: 'release'
|
2020-06-18 06:31:18 +00:00
|
|
|
- name: Extract version from milestone
|
|
|
|
run: |
|
|
|
|
VERSION="${{ github.event.milestone.title }}"
|
2020-10-23 09:33:45 +00:00
|
|
|
echo "RELEASE_VERSION=${VERSION/v/}" >> $GITHUB_ENV
|
2020-06-18 06:31:18 +00:00
|
|
|
|
|
|
|
- name: Update changelog
|
|
|
|
uses: thomaseizinger/keep-a-changelog-new-release@1.1.0
|
|
|
|
with:
|
2020-10-23 09:33:45 +00:00
|
|
|
version: ${{ env.RELEASE_VERSION }}
|
2020-06-18 06:31:18 +00:00
|
|
|
|
2020-10-10 06:59:13 +00:00
|
|
|
- name: Initialize git config and commit changes
|
2020-06-18 06:31:18 +00:00
|
|
|
run: |
|
|
|
|
git config user.name "GitHub Actions"
|
|
|
|
git config user.email noreply@github.com
|
|
|
|
|
2020-09-02 12:48:18 +00:00
|
|
|
- name: Create Pull Request
|
2020-10-23 09:33:45 +00:00
|
|
|
uses: peter-evans/create-pull-request@c7f493a8000b8aeb17a1332e326ba76b57cb83eb
|
2020-06-18 06:31:18 +00:00
|
|
|
with:
|
2020-10-23 09:33:45 +00:00
|
|
|
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 }}
|