mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
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:
parent
ac5ed50b37
commit
0cc68650e9
10
.github/workflows/docs_deploy_aws.yml
vendored
10
.github/workflows/docs_deploy_aws.yml
vendored
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user