-
Notifications
You must be signed in to change notification settings - Fork 4
52 lines (44 loc) · 1.15 KB
/
bump_version.yaml
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
name: bump_version
on:
workflow_dispatch:
inputs:
release_kind:
description: 'Kind of version bump'
default: 'patch'
type: choice
options:
- patch
- minor
- major
required: true
jobs:
bump:
name: bump version
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.GH_PAT }}
- name: Install cargo-edit
uses: baptiste0928/cargo-install@v3
with:
crate: cargo-edit
- name: Bump version of proxydetox
run: |
cargo set-version --bump ${{ github.event.inputs.release_kind }}
- name: Cargo update
run: |
cargo update
- name: Get new version
id: new_version
run: |
./tools/version
- name: Create PR
run: |
git config user.name github-actions
git config user.email [email protected]
git add .
git commit -m "Version ${{ steps.new_version.outputs.version }}"
git push -u origin HEAD
gh pr create --fill