Create a new hotfix branch #67
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 a new hotfix branch | |
on: | |
workflow_dispatch: | |
inputs: | |
hotfix_name: | |
description: Hotfix branch name | |
required: true | |
jobs: | |
create-branch: | |
name: Create a new hotfix branch | |
runs-on: [self-hosted, Linux, X64] | |
if: github.ref == 'refs/heads/main' | |
steps: | |
- name: Create branch | |
uses: peterjgrainger/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
branch: 'hotfix/${{ github.event.inputs.hotfix_name }}' |