Update update-version-number.yaml
now only matches if VERSION is at the start of the line
This commit is contained in:
parent
d2c3067eb2
commit
725735eb0a
1 changed files with 1 additions and 1 deletions
2
.github/workflows/update-version-number.yaml
vendored
2
.github/workflows/update-version-number.yaml
vendored
|
|
@ -23,7 +23,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
VERSION=${{ github.ref_name }}
|
VERSION=${{ github.ref_name }}
|
||||||
VERSION="${VERSION:1}"
|
VERSION="${VERSION:1}"
|
||||||
sed -i -E 's/VERSION = ".*?"/VERSION = "'$VERSION'"/g' find_posts.py
|
sed -i -E 's/^VERSION = ".*?"/VERSION = "'$VERSION'"/g' 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