Create a new hotfix branch #19
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 new hotfix branch v1.1 | |
on: | |
workflow_dispatch: | |
inputs: | |
hotfix_name: | |
description: Hotfix branch name | |
required: true | |
jobs: | |
create-branch: | |
name: Create new branch v1.1 | |
runs-on: ubuntu-latest | |
if: github.ref == 'refs/heads/production' | |
steps: | |
- name: Create branch | |
uses: peterjgrainger/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
branch: 'hotfix/${{ github.event.inputs.hotfix_name }}' | |