Skip to content

Commit

Permalink
chore: fix branch name
Browse files Browse the repository at this point in the history
  • Loading branch information
saikumarrs committed Nov 27, 2024
1 parent 3972c59 commit 66c9984
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/deploy-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,18 @@ jobs:
id: deploy-inputs
shell: bash
run: |
source_branch_name=${${{ github.head_ref }}##*/}
source_branch_name=${{ github.head_ref }}
echo "source_branch_name=$source_branch_name"
RELEASE_TYPE=beta
grep -q "bugbash/" <<< "${${{ github.head_ref }}}" && RELEASE_TYPE=bugbash
FEATURE_NAME=${source_branch_name#bugbash/}
FEATURE_NAME=${FEATURE_NAME#beta/}
FEATURE_NAME=${FEATURE_NAME#refs/heads/}
FEATURE_NAME=${FEATURE_NAME#refs/tags/}
echo "feature_name=$FEATURE_NAME"
LATEST_FEATURE_NAME="${FEATURE_NAME}/latest"
COMMIT_FEATURE_NAME="${FEATURE_NAME}/$(echo ${{ github.event.pull_request.head.sha }} | cut -c1-7)"
Expand Down

0 comments on commit 66c9984

Please sign in to comment.