mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-11 22:46:27 +00:00
ci: Detect commit SHA reliably (#22709)
This commit is contained in:
parent
20c2d28699
commit
762264bc21
1 changed files with 6 additions and 0 deletions
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
|
@ -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: |
|
||||
|
|
Loading…
Reference in a new issue