-
Notifications
You must be signed in to change notification settings - Fork 8
60 lines (57 loc) · 1.67 KB
/
bump-version.yml
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
57
58
59
60
name: Bump Versions
on:
workflow_dispatch:
inputs:
branch:
description: Branch for which you wish to bump and publish
default: main
preId:
description: The prerelease name (Only required if using a bump starting with `pre`)
default: alpha
bump:
description: Increment a version by the specified level
type: choice
default: prerelease
options:
- major
- minor
- patch
- premajor
- preminor
- prepatch
- prerelease
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
permissions:
contents: write
pull-requests: write
actions: read
deployments: read
jobs:
bump-version:
runs-on: ubuntu-latest
env:
ACTIONS_RUNNER_DEBUG: true
steps:
- name: Bump Versions
env:
ACTIONS_RUNNER_DEBUG: true
uses: dynamic-labs/sdk/.github/actions/release@main
id: bumpversion
with:
type: bump
bump: ${{ github.event.inputs.bump }}
ref: ${{ github.event.inputs.branch }}
preId: ${{ github.event.inputs.preId }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
base: ${{ github.event.inputs.branch }}
commit-message: |
chore(bump-version): bump package versions (${{ steps.bumpversion.outputs.version }}) [skip ci]
branch: github-bot/bump-version-v${{ steps.bumpversion.outputs.major }}
delete-branch: true
title: |
chore(bump-version): bump package versions (${{ steps.bumpversion.outputs.version }})
body: ""