Bump Version #28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- 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 }} |