mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-25 06:52:13 +00:00
gha: ci: Fix refernce passed to checkout@v3
On cc3993d860
we introduced a regression,
where we started passing inputs.commit-hash, instead of
github.event.pull_request.head.sha. However, we have been setting
commit-hash to github.event.pull_request.sha, meaning that we're mssing
a `.head.` there.
github.event.pull_request.sha is empty for the pull_request_target
event, leading the CI to pull the content from `main` instead of the
content from the PR.
Fixes: #7247
Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
parent
48d9f8769e
commit
0ad298895e
2
.github/workflows/ci-on-push.yaml
vendored
2
.github/workflows/ci-on-push.yaml
vendored
@ -17,7 +17,7 @@ jobs:
|
|||||||
if: ${{ contains(github.event.pull_request.labels.*.name, 'ok-to-test') }}
|
if: ${{ contains(github.event.pull_request.labels.*.name, 'ok-to-test') }}
|
||||||
uses: ./.github/workflows/ci.yaml
|
uses: ./.github/workflows/ci.yaml
|
||||||
with:
|
with:
|
||||||
commit-hash: ${{ github.event.pull_request.sha }}
|
commit-hash: ${{ github.event.pull_request.head.sha }}
|
||||||
pr-number: ${{ github.event.pull_request.number }}
|
pr-number: ${{ github.event.pull_request.number }}
|
||||||
tag: ${{ github.event.pull_request.number }}-${{ github.event.pull_request.head.sha }}
|
tag: ${{ github.event.pull_request.number }}-${{ github.event.pull_request.head.sha }}
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
Loading…
Reference in New Issue
Block a user