fix(ci): ensure release SHA is passed correctly and validate inputs (#4411)

This commit is contained in:
James Rich 2026-02-02 13:11:39 -06:00 committed by GitHub
parent 2c8eaf8f5d
commit 7d35f6e4a7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 13 additions and 0 deletions

View file

@ -261,6 +261,9 @@ jobs:
SHA=$(git rev-parse $TAG_TO_PROCESS)
fi
# Trim whitespace to ensure clean output
SHA=$(echo "$SHA" | xargs)
echo "Debug: Resolved SHA: '$SHA'"
if [ -z "$SHA" ]; then

View file

@ -73,6 +73,16 @@ jobs:
GRADLE_CACHE_USERNAME: ${{ secrets.GRADLE_CACHE_USERNAME }}
GRADLE_CACHE_PASSWORD: ${{ secrets.GRADLE_CACHE_PASSWORD }}
steps:
- name: Debug and Validate Inputs
run: |
echo "Debug: Tag Name: ${{ inputs.tag_name }}"
echo "Debug: Commit SHA: ${{ inputs.commit_sha }}"
if [ -z "${{ inputs.commit_sha }}" ] && [ "${{ inputs.channel }}" == "internal" ]; then
echo "::error::Internal release requires commit_sha because the tag does not exist yet."
exit 1
fi
- name: Checkout code
uses: actions/checkout@v6
with: