-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython-bump-version-and-tag.yml
More file actions
44 lines (37 loc) · 1.23 KB
/
python-bump-version-and-tag.yml
File metadata and controls
44 lines (37 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Bump Version and Tag
on:
workflow_call:
inputs:
python-version:
description: The version of python to install/use
type: string
required: false
default: "3.8"
secrets:
GH_TOKEN:
required: true
jobs:
bump-version-and-commit:
name: Bump Project Version, Commit, and Tag
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
token: ${{ secrets.GH_TOKEN }}
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ inputs.python-version }}
- name: Install and Configure Poetry
uses: triaxtec/github-actions/python/install-and-configure-poetry@v3
with:
poetry-version: 1.4.1
working-directory: ${{inputs.working-directory}}
- name: Bump Project Version
id: bump-version
uses: triaxtec/github-actions/python/bump-project-version@v3
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "chore: Bump version to v.${{ steps.bump-version.outputs.new-project-version }}"
tagging_message: v.${{ steps.bump-version.outputs.new-project-version }}