1. Bump Version #6
This file contains hidden or 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: 1. Bump Version | |
on: | |
workflow_dispatch: | |
inputs: | |
bump_type: | |
type: choice | |
description: "Choose bump version type:" | |
required: true | |
options: ["patch", "minor", "major"] | |
jobs: | |
# test: | |
# name: 1.1. Test | |
# runs-on: ubuntu-22.04 | |
# permissions: | |
# contents: read | |
# steps: | |
# - name: Checkout | |
# uses: actions/checkout@v4 | |
# - name: Set up Python | |
# uses: actions/setup-python@v5 | |
# with: | |
# python-version: "3.9" | |
# - name: Install dependencies | |
# run: | | |
# python -m pip install -U pip | |
# python -m pip install -r ./requirements/requirements.test.txt | |
# - name: Test with pytest | |
# run: ./scripts/test.sh -l | |
bump_version: | |
# needs: test | |
name: 1.2. Bump Version | |
runs-on: ubuntu-22.04 | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Bump version | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
git config user.name "github-actions" | |
git config user.email "github-actions@github.com" | |
./scripts/bump-version.sh -b=${{ inputs.bump_type }} -c -t -p |