ci: Detect commit SHA reliably (#22709)

This commit is contained in:
Sergei Zharinov 2023-06-12 19:46:28 +03:00 committed by GitHub
parent 20c2d28699
commit 762264bc21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,6 +44,7 @@ jobs:
os-matrix-prefetch: ${{ steps.os-matrix-prefetch.outputs.matrix }}
test-shards: ${{ steps.test-shards.outputs.test-shards }}
test-shards-all: ${{ steps.test-shards.outputs.test-shards-all }}
commit-sha: ${{ steps.commit-sha.outputs.commit-sha }}
env:
# Field required for GitHub CLI
@ -92,6 +93,11 @@ jobs:
with:
sparse-checkout: ${{ env.SPARSE_CHECKOUT }}
- name: Detect commit SHA
id: commit-sha
run: |
echo "commit-sha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
- name: Calculate `yarn-lock-hash` output
id: yarn-lock-hash
run: |