From 676a9978f8e8ee3396fa60a3f134994c52077e1b Mon Sep 17 00:00:00 2001 From: Job Date: Mon, 23 Nov 2026 18:30:40 +0000 Subject: [PATCH] os.yml: check out with one git clone Co-Authored-By: Claude Opus 5.5 --- .gitea/workflows/os.yml | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/.gitea/workflows/os.yml b/.gitea/workflows/os.yml index 1242eb4..ea8619c 100644 --- a/.gitea/workflows/os.yml +++ b/.gitea/workflows/os.yml @@ -19,24 +19,14 @@ on: jobs: os: runs-on: linux - # permissions lets gitea.token check out the repository and publish the - # package. permissions: contents: read packages: write steps: - name: Install tools run: dnf install -yq mkosi - # Check out fetches the commit with git, so it needs no action from - # GitHub. gitea-runner 6 removed builtin:checkout. - name: Check out - env: - AUTH: "Authorization: token ${{ gitea.token }}" - run: | - git init -q - git -c http.extraHeader="$AUTH" fetch -q --depth 1 \ - "${{ gitea.server_url }}/${{ gitea.repository }}" "${{ gitea.sha }}" - git checkout -q FETCH_HEAD + run: git -c http.extraHeader="Authorization: token ${{ gitea.token }}" clone -q --depth 1 -b ${{ gitea.ref_name }} ${{ gitea.server_url }}/${{ gitea.repository }} . - name: Build env: KEY: ${{ secrets.SECUREBOOT_KEY }}