From 83692682f095528f8b71652ddacff7075e36e893 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Sat, 3 Oct 2026 15:23:44 +0200 Subject: [PATCH] fix: fetch full history before fast-forwarding stable in the Nix workflow The shallow checkout did not contain the current stable commit, so git rejected the push to stable for v1.0.1 even though it was a fast-forward. --- .github/workflows/nix.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml index 2bbd1d5c1..61350c78a 100644 --- a/.github/workflows/nix.yml +++ b/.github/workflows/nix.yml @@ -139,8 +139,11 @@ jobs: permissions: contents: write steps: + # Full history, so git can verify that the push to stable is a fast-forward. - name: Checkout uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + fetch-depth: 0 # Without --force, the push fails unless it is a fast-forward, so stable # never moves back to an older release.