Skip to content

Commit 086c1df

Browse files
authored
Create workflow to update minor version (#479)
1 parent dafa948 commit 086c1df

File tree

2 files changed

+33
-45
lines changed

2 files changed

+33
-45
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Bump minor version and commit updated code
2+
3+
on:
4+
workflow_dispatch
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Setup
12+
uses: actions/checkout@v3
13+
with:
14+
submodules: recursive
15+
- name: Update submodules
16+
run: git submodule update --remote --recursive
17+
- name: Set up Python
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: '3.x'
21+
- name: Install bump
22+
run: pip install bump
23+
- name: Bump minor version and Commit generated code
24+
run: |
25+
git config user.name github-actions
26+
git config user.email github-actions@github.com
27+
VERSION=$(bump -m -r linebot/__about__.py)
28+
python generate-code.py
29+
git add .
30+
git commit -m "Bump version to $VERSION"
31+
git push origin master
32+
env:
33+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/diff-check.yml

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)