Skip to content

Commit

Permalink
Create bump-version.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Raine-Yang-UofT authored Nov 28, 2023
1 parent 49b9b3d commit bd5992c
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/bump-version.yml
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 }}"

0 comments on commit bd5992c

Please sign in to comment.