-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (36 loc) · 939 Bytes
/
bumpversion.yaml
File metadata and controls
40 lines (36 loc) · 939 Bytes
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
name: Bump version
on:
push:
branches:
- master
inputs:
bump_level:
description: "Bump level"
required: true
default: "patch"
type: choice
options:
- patch
- minor
- major
jobs:
bump_version:
runs-on: ubuntu-latest
name: 'Bump version, tag and create github release'
steps:
- name: Check out
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Create bump and changelog
with:
github_token: "${{ secrets.PERSONAL_ACCESS_TOKEN }}"
script: uv version bump ${{ github.event.inputs.bump_level }}
- name: Release
uses: softprops/action-gh-release@v1
with:
tag_name: "${{ env.REVISION }}"
env:
GITHUB_TOKEN: "${{ secrets.PERSONAL_ACCESS_TOKEN }}"