Android-Password-Store/.github/workflows/draft_new_release.yml
Harsh Shandilya 5713c719a5
Update Actions (#1270)
* github: bump actions/upload-artifact to v2.2.2

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>

* github: bump reactivecircus/android-emulator-runner to v2.14.2

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>

* github: bump peter-evans/create-pull-request to v3.6.0

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2021-01-06 13:33:18 +01:00

41 lines
1.4 KiB
YAML

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@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
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@96ebf19f2bddaf72406c84691b9c2d827da53140
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@45c510e1f68ba052e3cd911f661a799cfb9ba3a3
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 }}