Trigger Release #11
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
name: Trigger Release | |
on: | |
workflow_dispatch: | |
inputs: | |
level: | |
description: "The level to bump the current version" | |
required: true | |
default: "patch" | |
options: | |
- "patch" | |
- "minor" | |
- "major" | |
- "prepatch" | |
- "preminor" | |
- "prerelease" | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
create-version: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ ubuntu-latest ] | |
python-version: [ "3.9" ] | |
steps: | |
- uses: actions/create-github-app-token@v1 | |
id: app-token | |
with: | |
app-id: ${{ vars.RELEASE_BOT_APP_ID }} | |
private-key: ${{ secrets.RELEASE_BOT_APP_PKEY }} | |
- uses: actions/checkout@v4 | |
with: | |
token: ${{ steps.app-token.outputs.token }} | |
- uses: ./.github/actions/bootstrap-environ | |
id: bootstrap-environ | |
with: | |
python-version: ${{ matrix.python-version }} | |
runner: ${{ matrix.os }} | |
- name: Tag New Version | |
run: make release-version rule=${{ inputs.level }} | |
- name: Push New Version | |
run: git push --follow-tags origin ${{ github.ref_name }} |