diff --git a/.github/workflows/00-firstworkflow.yaml b/.github/workflows/00-firstworkflow.yaml index 63133bd..9bfab7b 100644 --- a/.github/workflows/00-firstworkflow.yaml +++ b/.github/workflows/00-firstworkflow.yaml @@ -21,12 +21,12 @@ jobs: echo "Branch input is required for manual trigger." exit 1 else - BRANCH_NAME="${{ github.ref }}" + BRANCH_NAME="${{ github.event.inputs.branch }}" fi else # Extract branch name from github.ref BRANCH_NAME="${{ github.ref }}" - BRANCH_NAME="${BRANCH_NAME##*/}" # This removes everything before the last '/' + # BRANCH_NAME="${BRANCH_NAME##*/}" # This removes everything before the last '/' fi echo "Checkout branch $BRANCH_NAME"