Repository navigation
56 lines (48 loc) · 1.66 KB
/
Copy pathbump.yml
File metadata and controls
56 lines (48 loc) · 1.66 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
45
46
47
48
49
50
51
52
53
54
55
56
name: "+ Release Bump"
on:
workflow_dispatch:
inputs:
arguments:
description: "Optional arguments passed to `cz bump` (e.g. '--increment major --prerelease rc'). Leave empty for auto-detection from commit messages."
required: false
type: string
default: ""
workflow_call:
jobs:
bump:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- name: Generate GitHub App token
id: app-token
uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0
with:
client-id: ${{ secrets.RELEASE_BOT_APP_ID }}
private-key: ${{ secrets.RELEASE_BOT_PRIVATE_KEY }}
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
token: ${{ steps.app-token.outputs.token }}
fetch-depth: 0
- name: Setup Dev Environment
uses: $/.github/actions/setup-dev-env
- name: Configure git identity
run: |
git config user.name "aignostics-release-bot[bot]"
git config user.email "aignostics-release-bot[bot]@users.noreply.github.com"
- name: Bump version
env:
BUMP_ARGS: ${{ inputs.arguments }}
run: cz bump --no-verify --yes $BUMP_ARGS
- name: Update lockfile and amend bump commit
run: |
uv lock
git add uv.lock
git commit --amend --no-edit --no-verify
git tag -f "v$(cat VERSION)"
- name: Push version bump and tag
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
run: git push origin main --tags