Merge pull request #166 from bdmorin/gh-debug-1
updates github action to increment version
This commit is contained in:
commit
6009ad2fce
1 changed files with 4 additions and 1 deletions
5
.github/workflows/update-version-number.yaml
vendored
5
.github/workflows/update-version-number.yaml
vendored
|
|
@ -4,6 +4,8 @@ name: Update Version number
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- "v[0-9]+.[0-9]+.[0-9]+"
|
- "v[0-9]+.[0-9]+.[0-9]+"
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
run:
|
run:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
@ -16,11 +18,12 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
git config user.name nanos-bot
|
git config user.name nanos-bot
|
||||||
git config user.email bot@thms.uk
|
git config user.email bot@thms.uk
|
||||||
|
#- uses: mxschmitt/action-tmate@v3
|
||||||
- name: Update version number
|
- name: Update version number
|
||||||
run: |
|
run: |
|
||||||
VERSION=${{ github.ref_name }}
|
VERSION=${{ github.ref_name }}
|
||||||
VERSION="${VERSION:1}"
|
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 add find_posts.py
|
||||||
git commit -m "[bot] Bump version to $VERSION"
|
git commit -m "[bot] Bump version to $VERSION"
|
||||||
- name: Push to repository
|
- name: Push to repository
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue