2021-02-08 09:15:29 +08:00
|
|
|
name: Update release version.
|
|
|
|
on:
|
|
|
|
release:
|
|
|
|
types: [published]
|
|
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
update-version:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-04-15 03:31:40 +08:00
|
|
|
- uses: actions/checkout@v3.0.1
|
2021-04-04 22:50:20 +08:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2021-04-03 00:43:14 +08:00
|
|
|
- name: Sync release version.
|
2022-02-15 13:08:56 +08:00
|
|
|
uses: tj-actions/sync-release-version@v11
|
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
|
2022-03-14 17:33:51 +08:00
|
|
|
uses: tj-actions/github-changelog-generator@v1.13
|
2021-04-03 00:43:14 +08:00
|
|
|
with:
|
|
|
|
output: 'HISTORY.md'
|
2021-02-08 09:15:29 +08:00
|
|
|
- name: Create Pull Request
|
2022-04-08 22:13:09 +08:00
|
|
|
uses: peter-evans/create-pull-request@v4.0.2
|
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 }}
|