From 48466d067b30b745d048c161fc9a795d981e3675 Mon Sep 17 00:00:00 2001 From: Michel Schanen Date: Wed, 19 Aug 2026 16:43:54 -0500 Subject: [PATCH] Fix fork-PR push to ALCF GitLab The label-gated fork-PR step fetched the PR head with --depth=1 and pushed it to GitLab, which rejects pushes from shallow repositories ("shallow update not allowed"). Fetch the full history instead. --- .github/workflows/alcf.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/alcf.yml b/.github/workflows/alcf.yml index a4ede851..8896a932 100644 --- a/.github/workflows/alcf.yml +++ b/.github/workflows/alcf.yml @@ -53,7 +53,7 @@ jobs: PR: ${{ github.event.pull_request.number }} run: | git init -q head && cd head - git fetch -q --depth=1 "https://github.com/$GITHUB_REPOSITORY" "pull/$PR/head" + git fetch -q "https://github.com/$GITHUB_REPOSITORY" "pull/$PR/head" if [ "$(git rev-parse FETCH_HEAD)" != "$HEAD_SHA" ]; then echo "::error::PR head moved since labeling; re-apply the label" exit 1