From 094de23bd0acc6e71d861aa47c0c13ac372798eb Mon Sep 17 00:00:00 2001 From: Tyler Koenig Date: Tue, 2 Jun 2026 10:15:47 -0400 Subject: [PATCH] fix(ci): extract git-cliff to /tmp to avoid dirty worktree GoReleaser refuses to release when untracked files exist. The git-cliff tarball was extracting into the workspace, leaving a git-cliff-*/ directory that made git status dirty. --- .gitea/workflows/release-binaries.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/release-binaries.yml b/.gitea/workflows/release-binaries.yml index 1777b8c..88430f9 100644 --- a/.gitea/workflows/release-binaries.yml +++ b/.gitea/workflows/release-binaries.yml @@ -35,8 +35,8 @@ jobs: run: | apk add --no-cache curl jq VERSION=$(curl -sS https://api.github.com/repos/orhun/git-cliff/releases/latest | jq -r '.tag_name' | sed 's/^v//') - curl -sSL "https://github.com/orhun/git-cliff/releases/download/v${VERSION}/git-cliff-${VERSION}-x86_64-unknown-linux-musl.tar.gz" | tar xz - mv git-cliff-*/git-cliff /usr/local/bin/ + curl -sSL "https://github.com/orhun/git-cliff/releases/download/v${VERSION}/git-cliff-${VERSION}-x86_64-unknown-linux-musl.tar.gz" | tar xz -C /tmp + mv /tmp/git-cliff-*/git-cliff /usr/local/bin/ git-cliff --version - name: Generate release notes