Skip to content

Commit

Permalink
Update and rename release.yml to sync-release-version.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Jan 24, 2021
1 parent 3e6b543 commit cfa58ff
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 30 deletions.
30 changes: 0 additions & 30 deletions .github/workflows/release.yml

This file was deleted.

27 changes: 27 additions & 0 deletions .github/workflows/sync-release-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Update release version.
on:
release:
types: [published]


jobs:
update-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Bumpversion release version.
uses: tj-actions/bumpversion@v7.1
id: bumpversion
with:
pattern: 'tj-actions/verify-changed-files@'
paths: |
README.md
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
base: "master"
title: "Upgraded to ${{ steps.bumpversion.outputs.new_version }}"
branch: "upgrade-to-${{ steps.bumpversion.outputs.new_version }}"
commit-message: "Upgraded from ${{ steps.bumpversion.outputs.old_version }} -> ${{ steps.bumpversion.outputs.new_version }}"
body: "View [CHANGES](https://github.com/${{ github.repository }}/compare/${{ steps.bumpversion.outputs.old_version }}...${{ steps.bumpversion.outputs.new_version }})"
token: ${{ secrets.PAT_TOKEN }}

0 comments on commit cfa58ff

Please sign in to comment.