2021-02-08 09:15:29 +08:00
|
|
|
name: Update release version.
|
|
|
|
on:
|
|
|
|
release:
|
|
|
|
types: [published]
|
|
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
update-version:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-10-16 00:11:58 +08:00
|
|
|
- uses: actions/checkout@v2.3.5
|
2021-04-04 22:50:20 +08:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2021-04-03 00:43:14 +08:00
|
|
|
- name: Sync release version.
|
2021-10-18 20:11:35 +08:00
|
|
|
uses: tj-actions/sync-release-version@v9
|
2021-04-03 00:43:14 +08:00
|
|
|
id: sync-release-version
|
2021-02-08 09:15:29 +08:00
|
|
|
with:
|
2021-04-03 00:43:14 +08:00
|
|
|
pattern: '${{ github.repository }}@'
|
2021-02-08 09:15:29 +08:00
|
|
|
paths: |
|
|
|
|
README.md
|
2021-04-03 00:43:14 +08:00
|
|
|
- name: Generate CHANGELOG
|
2021-05-05 02:12:30 +08:00
|
|
|
uses: tj-actions/github-changelog-generator@v1.8
|
2021-04-03 00:43:14 +08:00
|
|
|
with:
|
|
|
|
output: 'HISTORY.md'
|
2021-02-08 09:15:29 +08:00
|
|
|
- name: Create Pull Request
|
2021-08-23 12:22:54 +08:00
|
|
|
uses: peter-evans/create-pull-request@v3.10.1
|
2021-02-08 09:15:29 +08:00
|
|
|
with:
|
2021-02-08 09:22:48 +08:00
|
|
|
base: "main"
|
2021-04-03 00:43:14 +08:00
|
|
|
title: "Upgraded to ${{ steps.sync-release-version.outputs.new_version }}"
|
|
|
|
branch: "upgrade-to-${{ steps.sync-release-version.outputs.new_version }}"
|
|
|
|
commit-message: "Upgraded from ${{ steps.sync-release-version.outputs.old_version }} -> ${{ steps.sync-release-version.outputs.new_version }}"
|
|
|
|
body: "View [CHANGES](https://github.com/${{ github.repository }}/compare/${{ steps.sync-release-version.outputs.old_version }}...${{ steps.sync-release-version.outputs.new_version }})"
|
2021-02-08 09:15:29 +08:00
|
|
|
token: ${{ secrets.PAT_TOKEN }}
|