-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
49b9b3d
commit bd5992c
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Bump version workflow | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
bump-version: | ||
name: Bump package version | ||
if: "!contains(github.event.head_commit.message, 'Bump version')" | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: actions/checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
persist-credentials: false | ||
- name: current_version | ||
run: echo "current_version=$(grep '# version' version.md | cut -d ' ' -f3)" >> $GITHUB_ENV | ||
- name: FragileTech/bump-version | ||
uses: FragileTech/bump-version@main | ||
with: | ||
current_version: "${{ env.current_version }}" | ||
files: version.md | ||
commit_name: Your Company Bot | ||
commit_email: [email protected] | ||
login: your-bot-login | ||
token: "${{ secrets.BOT_TOKEN }}" |