Skip to content

Commit 005c3f0

Browse files
committed
fix test code
1 parent 5bb3190 commit 005c3f0

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/build-rc-auto.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ on:
1818
#remove before merge.
1919
#test auto-build on specific release branch
2020
env:
21-
GH_REF_NAME: "release/7.61.6"
21+
GH_REF_NAME: 'release/7.61.6'
2222

2323
jobs:
2424
validate-and-check-label:
@@ -27,6 +27,7 @@ jobs:
2727
outputs:
2828
semver: ${{ steps.extract-version.outputs.semver }}
2929
has-label: ${{ steps.check-label.outputs.has-label }}
30+
branch-name: ${{ steps.extract-version.outputs.branch-name }}
3031
permissions:
3132
pull-requests: read
3233
steps:
@@ -43,6 +44,7 @@ jobs:
4344
BRANCH_NAME="${{ env.GH_REF_NAME }}"
4445
#BRANCH_NAME="${{ github.ref_name }}"
4546
echo "Checking branch: $BRANCH_NAME"
47+
echo "branch-name=$BRANCH_NAME" >> "$GITHUB_OUTPUT"
4648
4749
# Validate branch matches release/x.y.z format (semantic versioning)
4850
if [[ "$BRANCH_NAME" =~ ^release/[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
@@ -92,10 +94,10 @@ jobs:
9294
needs: validate-and-check-label
9395
if: needs.validate-and-check-label.outputs.has-label == 'true'
9496
with:
95-
#remove before merge.
96-
#test auto-build on specific release branch
97+
#remove before merge.
98+
#test auto-build on specific release branch
9799
# base-branch: ${{ github.ref_name }}
98-
base-branch: ${{ env.GH_REF_NAME }}
100+
base-branch: ${{ needs.validate-and-check-label.outputs.branch-name }}
99101
secrets:
100102
PR_TOKEN: ${{ secrets.PR_TOKEN }}
101103
permissions:

0 commit comments

Comments
 (0)