diff --git a/.gitea/workflows/os.yml b/.gitea/workflows/os.yml index c87d612..545c442 100644 --- a/.gitea/workflows/os.yml +++ b/.gitea/workflows/os.yml @@ -22,8 +22,16 @@ jobs: steps: - name: Install tools run: dnf install -yq mkosi git-core zstd qemu-img + # Check out fetches the commit with git, because the job image has no + # Node.js for actions/checkout. - name: Check out - uses: builtin:checkout + 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 - name: Build env: KEY: ${{ secrets.SECUREBOOT_KEY }}