Skip to content

Commit

Permalink
Create workflow to update minor version (#479)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yang-33 committed Jul 6, 2023
1 parent dafa948 commit 086c1df
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 45 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/bump-minor-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Bump minor version and commit updated code

on:
workflow_dispatch

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Setup
uses: actions/checkout@v3
with:
submodules: recursive
- name: Update submodules
run: git submodule update --remote --recursive
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install bump
run: pip install bump
- name: Bump minor version and Commit generated code
run: |
git config user.name github-actions
git config user.email github-actions@github.com
VERSION=$(bump -m -r linebot/__about__.py)
python generate-code.py
git add .
git commit -m "Bump version to $VERSION"
git push origin master
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45 changes: 0 additions & 45 deletions .github/workflows/diff-check.yml

This file was deleted.

0 comments on commit 086c1df

Please sign in to comment.