Skip to content

Commit c367084

Browse files
committed
ci: use proper checkout for PRs (auto gen merge commits)
It's required to make the whole workflow work correctly with passing built images into VLAB and etc. Signed-off-by: Sergei Lukianov <me@slukjanov.name>
1 parent 95dff4d commit c367084

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
steps:
3838
- uses: "actions/checkout@v5"
3939
with:
40-
ref: ${{ github.event.pull_request.head.sha }}
40+
fetch-depth: 0
4141
- uses: "dtolnay/rust-toolchain@stable"
4242
- uses: "cargo-bins/cargo-binstall@main"
4343
- name: "install whyq"
@@ -81,8 +81,7 @@ jobs:
8181
8282
- uses: "actions/checkout@v5"
8383
with:
84-
# make sure to update the vlab prebuild script if changing it
85-
ref: ${{ github.event.pull_request.head.sha }}
84+
fetch-depth: 0
8685

8786
- name: "install nix"
8887
uses: "cachix/install-nix-action@v31"

0 commit comments

Comments
 (0)