-
Notifications
You must be signed in to change notification settings - Fork 50
44 lines (36 loc) · 994 Bytes
/
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
## XXX This can not currently run with restrictions we have on branch protections
name: Bump Version
on:
workflow_dispatch:
inputs:
semType:
description: 'Semantic version part to bump'
required: true
default: 'bug'
type: choice
options:
- major
- minor
- bug
jobs:
bump:
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Generate a token
id: app-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.GHAPP_ID_NUCLIABOT }}
private-key: ${{ secrets.PK_GHAPP_NUCLIABOT }}
owner: nuclia
- uses: actions/checkout@master
with:
persist-credentials: false
fetch-depth: 0
- run: python bump.py --sem=${{ inputs.semType }}
- name: Commit & Push changes
uses: actions-js/push@master
with:
github_token: ${{ steps.app-token.outputs.token }}