mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-30 06:43:34 +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:
@@ -27,7 +27,7 @@ concurrency:
|
|||||||
cancel-in-progress: false
|
cancel-in-progress: false
|
||||||
|
|
||||||
env:
|
env:
|
||||||
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
|
RAW_BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -46,6 +46,14 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
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
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user