Skip to content

Commit d13e949

Browse files
committed
Fix release-process
1 parent d649a0d commit d13e949

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/auto-testing.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
- name: Update version in linebot/__about__.py
3131
run: |
3232
VERSION="12.3.0"
33+
VERSION=${VERSION#v}
3334
sed -i "s/__version__ = '__LINE_BOT_SDK_PYTHON_VERSION__'/__version__ = '$VERSION'/g" linebot/__about__.py
3435
cat linebot/__about__.py
3536
- name: Test with pytest

.github/workflows/publish-to-pypi.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ jobs:
2727
- name: Update version in linebot/__about__.py
2828
run: |
2929
VERSION=${{ github.event.release.tag_name }}
30-
sed -i 's/__version__ = "__LINE_BOT_SDK_PYTHON_VERSION__"/__version__ = "$VERSION"/g' linebot/__about__.py
30+
VERSION=${VERSION#v}
31+
sed -i "s/__version__ = '__LINE_BOT_SDK_PYTHON_VERSION__'/__version__ = '$VERSION'/g" linebot/__about__.py
3132
cat linebot/__about__.py
3233
- name: Build and publish
3334
env:

0 commit comments

Comments
 (0)