Skip to content

Commit 0bbd6ae

Browse files
committed
test
1 parent 25806cd commit 0bbd6ae

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.github/workflows/auto-testing.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ jobs:
2929
python generate-code.py
3030
- name: Update version in linebot/__about__.py
3131
run: |
32-
sed -i 's/__version__ = "__LINE_BOT_SDK_PYTHON_VERSION__"/__version__ = "12.34.5"/g' linebot/__about__.py
32+
VERSION="12.3.0"
33+
sed -i 's/__version__ = "__LINE_BOT_SDK_PYTHON_VERSION__"/__version__ = "$VERSION"/g' linebot/__about__.py
3334
cat linebot/__about__.py
3435
- name: Test with pytest
3536
run: |

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,10 @@ jobs:
2424
run: |
2525
python -m pip install --upgrade pip
2626
pip install setuptools wheel twine
27-
- name: Show Version Number
28-
run: |
29-
echo "Version=${{ github.event.release.tag_name }}"
3027
- name: Update version in linebot/__about__.py
3128
run: |
32-
sed -i 's/__version__ = "__LINE_BOT_SDK_PYTHON_VERSION__"/__version__ = "'${{ github.event.release.tag_name }}'"/g' linebot/__about__.py
29+
VERSION=${{ github.event.release.tag_name }}
30+
sed -i 's/__version__ = "__LINE_BOT_SDK_PYTHON_VERSION__"/__version__ = "$VERSION"/g' linebot/__about__.py
3331
cat linebot/__about__.py
3432
- name: Build and publish
3533
env:

0 commit comments

Comments
 (0)