Gitflow Release #20
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: Gitflow Release | |
on: | |
workflow_dispatch: | |
inputs: | |
version_increment: | |
type: choice | |
required: true | |
description: "Version increment" | |
default: "patch" | |
options: | |
- "major" | |
- "minor" | |
- "patch" | |
jobs: | |
gitflow-release: | |
name: Gitflow Release | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: gitflow-workflow-action release workflows | |
id: gitflow | |
uses: hoangvvo/[email protected] | |
with: | |
develop_branch: "develop" | |
main_branch: "production" | |
merge_back_from_main: true | |
version_increment: ${{ inputs.version_increment }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Install GitHub CLI | |
run: brew install gh | |
- name: Update pull request title | |
run: | | |
PR_NUMBER="${{ steps.gitflow.outputs.pull_number }}" | |
VERSION=$(echo "${{ steps.gitflow.outputs.version }}" | sed 's/^v//') | |
gh pr edit $PR_NUMBER --title "[Release] - $VERSION" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |