Create Release #12
Workflow file for this run
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: Create Release | |
on: | |
workflow_dispatch: | |
inputs: | |
releaseType: | |
description: 'Release Type' | |
required: true | |
type: choice | |
options: | |
- default | |
- alpha | |
- beta | |
- rc | |
jobs: | |
bump-version: | |
runs-on: ubuntu-latest | |
name: "Bump release version and create changelog" | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.RELEASE_ACCESS_TOKEN }} | |
- name: Install cz | |
run: pip install --user -U Commitizen | |
- name: Create release branch | |
run: | | |
git checkout -b release/next | |
git push -u origin release/next | |
- name: Create bump and changelog | |
if: ${{ inputs.releaseType == 'default' }} | |
run: cz bump --files-only --yes --changelog | |
- name: Create bump and changelog | |
if: ${{ inputs.releaseType != 'default' }} | |
run: 'cz bump --files-only --yes --changelog --prerelease ${{ inputs.releaseType }}' | |
- name: Commit changes | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: Bumped version and updated CHANGELOG | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
token: ${{ secrets.RELEASE_ACCESS_TOKEN }} | |
base: nq/release_flow_tests | |
branch: release/next | |
delete-branch: true | |
title: Release | |
body: '' | |