Skip to content

Commit

Permalink
Merge pull request #166 from bdmorin/gh-debug-1
Browse files Browse the repository at this point in the history
updates github action to increment version
  • Loading branch information
nanos authored Sep 4, 2024
2 parents d6066f3 + f643c07 commit 6009ad2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/update-version-number.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ name: Update Version number
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
workflow_dispatch:

jobs:
run:
runs-on: ubuntu-latest
Expand All @@ -16,11 +18,12 @@ jobs:
run: |
git config user.name nanos-bot
git config user.email bot@thms.uk
#- uses: mxschmitt/action-tmate@v3
- name: Update version number
run: |
VERSION=${{ github.ref_name }}
VERSION="${VERSION:1}"
sed -i '' -E 's/VERSION = "[0-9]+.[0-9]+.[0-9]+"/VERSION = "'$VERSION'"/' find_posts.py
sed -i -E 's/VERSION = "[0-9]+.[0-9]+.[0-9]+"/VERSION = "'$VERSION'"/' find_posts.py
git add find_posts.py
git commit -m "[bot] Bump version to $VERSION"
- name: Push to repository
Expand Down

0 comments on commit 6009ad2

Please sign in to comment.