From 23283c375f40e3776fe06685a422dc16b38e6870 Mon Sep 17 00:00:00 2001 From: rob thijssen Date: Tue, 28 Apr 2026 08:15:57 +0300 Subject: [PATCH] fix(ci): clone upstream locally instead of using repo-url for changelog The rpm-changelog action's repo-url input uses mktemp which fails on runners with restricted /tmp permissions. Clone the upstream repo directly in the workflow and use source-dir instead. Co-Authored-By: Claude Opus 4.6 (1M context) --- .gitea/workflows/build-release.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build-release.yml b/.gitea/workflows/build-release.yml index 77fb68a..a86d704 100644 --- a/.gitea/workflows/build-release.yml +++ b/.gitea/workflows/build-release.yml @@ -94,12 +94,17 @@ jobs: env: TAG: ${{ inputs.tag }} + - name: Clone upstream for changelog + run: | + git clone --depth 50 --branch "${{ inputs.tag }}" \ + https://github.com/EricLBuehler/mistral.rs.git upstream/ + - name: Generate changelog uses: https://git.lair.cafe/actions/rpm-changelog@v1 with: spec: rpm/mistralrs.spec version: ${{ steps.version.outputs.version }} - repo-url: https://github.com/EricLBuehler/mistral.rs.git + source-dir: upstream/ - name: Build RPM run: |