diff options
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/android-reproducible-builds.yml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/.github/workflows/android-reproducible-builds.yml b/.github/workflows/android-reproducible-builds.yml index 62855cc42f..f1f7568cc7 100644 --- a/.github/workflows/android-reproducible-builds.yml +++ b/.github/workflows/android-reproducible-builds.yml @@ -32,11 +32,12 @@ jobs: - id: hash name: Set commit hash or default to github.sha run: | - # If the input has a value, it is filled by that value; otherwise, use github.sha + # If the input has a value, it is filled by that value; otherwise, fallback to PR sha. + # If it is not triggered by a PR, use github.sha. if [ -n "${{ inputs.commit_hash }}" ]; then echo "commit_hash=${{ inputs.commit_hash }}" >> "$GITHUB_OUTPUT" else - echo "commit_hash=${{ github.sha }}" >> "$GITHUB_OUTPUT" + echo "commit_hash=${{ github.event.pull_request.head.sha || github.sha }}" >> "$GITHUB_OUTPUT" fi outputs: COMMIT_HASH: ${{ steps.hash.outputs.commit_hash }} |
