Skip to content

Commit

Permalink
Added .github/workflows/sync-release-version.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Apr 2, 2021
1 parent 118a2a8 commit 6632118
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/sync-release-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Update release version.
on:
release:
types: [published]


jobs:
update-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Sync release version.
uses: tj-actions/sync-release-version@v8
id: sync-release-version
with:
pattern: '${{ github.repository }}@'
paths: |
README.md
- name: Generate CHANGELOG
uses: tj-actions/github-changelog-generator@v1.3
with:
output: 'HISTORY.md'
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
base: "main"
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 }})"
token: ${{ secrets.PAT_TOKEN }}

0 comments on commit 6632118

Please sign in to comment.