From b4e9c7eec5f6e7b7abe0d7ea109d43c048355979 Mon Sep 17 00:00:00 2001 From: termux-monorepo sweep Date: Sat, 3 Oct 2026 20:15:45 +0000 Subject: [PATCH] fix(ci): skip sweep receipt push unless ref is a branch pull_request checkouts set GITHUB_REF_NAME to /merge, which is not a full refname. Run 37148428849 failed pushing HEAD:1059/merge. Receipts belong on refs/heads/* only; issue and comment events have no writable branch either. --- .github/workflows/sweep-accountability.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/sweep-accountability.yml b/.github/workflows/sweep-accountability.yml index 2d76e2f7e..35781a098 100644 --- a/.github/workflows/sweep-accountability.yml +++ b/.github/workflows/sweep-accountability.yml @@ -120,6 +120,17 @@ jobs: exit 0 fi git commit -m "chore(ops): record sweep accountability receipt" + # pull_request checkouts use GITHUB_REF_NAME like 1059/merge, which + # is not a branch. Run 37148428849 failed: destination is not a full + # refname. Receipts belong on the branch that was pushed, not the + # merge ref. Issue/comment events also lack a writable branch. + case "${GITHUB_REF}" in + refs/heads/*) ;; + *) + echo "skip receipt push: event=${GITHUB_EVENT_NAME} ref=${GITHUB_REF} is not a branch" + exit 0 + ;; + esac # Receipt races are not compile failures. Run 37082734311 failed # non-fast-forward when another writer moved the ref. Retry once # by rebasing the ledger-only commit; leave the remote tip