Skip to content

Create New Hotfix Branch #75

Create New Hotfix Branch

Create New Hotfix Branch #75

name: Create New Hotfix Branch
on:
workflow_dispatch:
inputs:
hotfix_name:
description: Hotfix branch name
required: true
jobs:
create-branch:
name: Create New Hotfix Branch
runs-on: ubuntu-latest
# Only allow these users to create new hotfix branch from 'main'
if: github.ref == 'refs/heads/main' && (github.actor == 'ItsSudip' || github.actor == 'krishna2020' || github.actor == 'saikumarrs' || github.actor == 'sandeepdsvs' || github.actor == 'shrouti1507' || github.actor == 'anantjain45823' || github.actor == 'chandumlg' || github.actor == 'mihir-4116' || github.actor == 'ujjwal-ab') && (github.triggering_actor == 'ItsSudip' || github.triggering_actor == 'krishna2020' || github.triggering_actor == 'saikumarrs' || github.triggering_actor == 'sandeepdsvs' || github.triggering_actor == 'shrouti1507' || github.triggering_actor == 'anantjain45823' || github.triggering_actor == 'chandumlg' || github.triggering_actor == 'mihir-4116' || github.triggering_actor == 'ujjwal-ab)

Check failure on line 16 in .github/workflows/create-hotfix-branch.yml

View workflow run for this annotation

GitHub Actions / Create New Hotfix Branch

Invalid workflow file

The workflow is not valid. .github/workflows/create-hotfix-branch.yml (Line: 16, Col: 9): Unexpected symbol: ''ujjwal-ab)'. Located at position 706 within expression: github.ref == 'refs/heads/main' && (github.actor == 'ItsSudip' || github.actor == 'krishna2020' || github.actor == 'saikumarrs' || github.actor == 'sandeepdsvs' || github.actor == 'shrouti1507' || github.actor == 'anantjain45823' || github.actor == 'chandumlg' || github.actor == 'mihir-4116' || github.actor == 'ujjwal-ab') && (github.triggering_actor == 'Its[...]

Check failure on line 16 in .github/workflows/create-hotfix-branch.yml

View workflow run for this annotation

GitHub Actions / Create New Hotfix Branch

Invalid workflow file

The workflow is not valid. .github/workflows/create-hotfix-branch.yml (Line: 16, Col: 9): Unexpected symbol: ''ujjwal-ab)'. Located at position 706 within expression: github.ref == 'refs/heads/main' && (github.actor == 'ItsSudip' || github.actor == 'krishna2020' || github.actor == 'saikumarrs' || github.actor == 'sandeepdsvs' || github.actor == 'shrouti1507' || github.actor == 'anantjain45823' || github.actor == 'chandumlg' || github.actor == 'mihir-4116' || github.actor == 'ujjwal-ab') && (github.triggering_actor == 'Its[...]
steps:
- name: Create Branch
uses: peterjgrainger/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
with:
branch: 'hotfix/${{ inputs.hotfix_name }}'