AWS docs deploy workflow - modify release branch to same form (#25678)

Added a step to derive the branch name for deployment.
This commit is contained in:
Hamish Willee 2025-10-01 08:25:02 +10:00 committed by GitHub
parent ac5ed50b37
commit 0cc68650e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -27,7 +27,7 @@ concurrency:
cancel-in-progress: false
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
RAW_BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
jobs:
build:
@ -46,6 +46,14 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Derive branch name
run: |
BRANCH="${RAW_BRANCH_NAME}"
if [[ "$BRANCH" =~ ^release/(.*) ]]; then
BRANCH="v${BASH_REMATCH[1]}"
fi
echo "BRANCH_NAME=$BRANCH" >> $GITHUB_ENV
- name: Setup Node
uses: actions/setup-node@v4
with: