Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6827e2e

Browse files
authored
Merge pull request #1 from Lee-W/bump-version-github-workflow
ci(github_workflow): bump version when push to master
2 parents 7cab7f9 + 1ac56ad commit 6827e2e

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

‎.github/workflow/bumpversion.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
name: Bump version
3+
4+
on:
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
bump:
11+
if: "!contains(github.event.head_commit.message, 'bump')"
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
python-version: ['3.x']
16+
steps:
17+
- name: Check out
18+
uses: actions/checkout@v2
19+
with:
20+
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
21+
fetch-depth: 0
22+
- name: Set up Python ${{ matrix.python-version }}
23+
uses: actions/setup-python@v1
24+
with:
25+
python-version: ${{ matrix.python-version }}
26+
- name: Install dependencies
27+
run: |
28+
python --version
29+
python -m pip install -U commitizen
30+
- name: Configure repo
31+
run: |
32+
git config --local user.email "action@github.com"
33+
git config --local user.name "GitHub Action"
34+
git pull origin master --tags
35+
- name: Create bump
36+
run: |
37+
cz bump --yes
38+
git tag
39+
- name: Push changes
40+
uses: Woile/github-push-action@master
41+
with:
42+
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
43+
tags: "true"

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /