fix: update script calls to use env variable for CURRENT_BRANCH_NAME

This commit is contained in:
github-actions[bot]
2025-10-27 16:55:19 +11:00
parent 3292a66898
commit ead72d4dda
3 changed files with 3 additions and 4 deletions

View File

@@ -31,7 +31,7 @@ jobs:
id: extract
run: |
# Extract version from branch name and validate against version.py
.github/scripts/extract_version.sh "$CURRENT_BRANCH_NAME"
.github/scripts/extract_version.sh "${{ env.CURRENT_BRANCH_NAME }}"
- name: Validate version format
run: |

View File

@@ -27,12 +27,11 @@ jobs:
- name: Checkout code
uses: actions/checkout@v5
with:
ref: $CURRENT_BRANCH_NAME
fetch-depth: 0
- name: Extract version from branch
id: extract
run: .github/scripts/extract_version.sh "$CURRENT_BRANCH_NAME"
run: .github/scripts/extract_version.sh "${{ env.CURRENT_BRANCH_NAME }}"
- name: Validate version format
id: validate

View File

@@ -45,4 +45,4 @@ jobs:
echo "Branch '$BRANCH_NAME' does not exist, proceeding..."
- name: Create release branch and update version
run: .github/scripts/create_release.sh "${{ steps.validate.outputs.version }}" "$CURRENT_BRANCH_NAME"
run: .github/scripts/create_release.sh "${{ steps.validate.outputs.version }}" "${{ env.CURRENT_BRANCH_NAME }}"