os.yml: check out with one git clone
os.yml (push) Invalid workflow file

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Job79andClaude Opus 5.5 committed 2026-11-23 18:30:40 +00:00
1 parent d76d28ef8a
commit 676a9978f8
1 file changed
+1 -11
+1 -11
View File
@@ -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 }}