Updated .github/workflows/sync-release-version.yml

This commit is contained in:
Tonye Jack 2021-04-02 12:43:14 -04:00
parent 0e82e253a4
commit f1890e6baf

View File

@ -9,19 +9,23 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Bumpversion release version. - name: Sync release version.
uses: tj-actions/bumpversion@v7.1 uses: tj-actions/sync-release-version@v8
id: bumpversion id: sync-release-version
with: with:
pattern: 'tj-actions/branch-names@' pattern: '${{ github.repository }}@'
paths: | paths: |
README.md README.md
- name: Generate CHANGELOG
uses: tj-actions/github-changelog-generator@v1.3
with:
output: 'HISTORY.md'
- name: Create Pull Request - name: Create Pull Request
uses: peter-evans/create-pull-request@v3 uses: peter-evans/create-pull-request@v3
with: with:
base: "main" base: "main"
title: "Upgraded to ${{ steps.bumpversion.outputs.new_version }}" title: "Upgraded to ${{ steps.sync-release-version.outputs.new_version }}"
branch: "upgrade-to-${{ steps.bumpversion.outputs.new_version }}" branch: "upgrade-to-${{ steps.sync-release-version.outputs.new_version }}"
commit-message: "Upgraded from ${{ steps.bumpversion.outputs.old_version }} -> ${{ steps.bumpversion.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.bumpversion.outputs.old_version }}...${{ steps.bumpversion.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 }})"
token: ${{ secrets.PAT_TOKEN }} token: ${{ secrets.PAT_TOKEN }}