diff --git a/.github/workflows/build-submit-ios.yml b/.github/workflows/build-submit-ios.yml index 6fa8c2ba66..6b0af202f5 100644 --- a/.github/workflows/build-submit-ios.yml +++ b/.github/workflows/build-submit-ios.yml @@ -292,6 +292,7 @@ jobs: APP_VERSION: ${{ needs.build.outputs.package-version }} BUILD_NUMBER: ${{ needs.build.outputs.build-number }} BRANCH_NAME: ${{ github.ref_name }} + COMMIT_SHA: ${{ github.sha }} run: | # Ensure the API key material is removed even if fastlane exits non-zero # (the step runs under `bash -e`, which would otherwise abort before cleanup). @@ -307,7 +308,8 @@ jobs: > asc_api_key.json # app_platform is required in non-interactive mode: distribute_only otherwise # calls fetch_app_platform, which prompts for input and crashes without a TTY. - SHORT_SHA="$(git rev-parse --short HEAD)" + + SHORT_SHA="${COMMIT_SHA:0:7}" fastlane run upload_to_testflight \ api_key_path:"$PWD/asc_api_key.json" \ distribute_only:true \