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: jobs:
os: os:
runs-on: linux runs-on: linux
# permissions lets gitea.token check out the repository and publish the
# package.
permissions: permissions:
contents: read contents: read
packages: write packages: write
steps: steps:
- name: Install tools - name: Install tools
run: dnf install -yq mkosi 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 - name: Check out
env: run: git -c http.extraHeader="Authorization: token ${{ gitea.token }}" clone -q --depth 1 -b ${{ gitea.ref_name }} ${{ gitea.server_url }}/${{ gitea.repository }} .
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 - name: Build
env: env:
KEY: ${{ secrets.SECUREBOOT_KEY }} KEY: ${{ secrets.SECUREBOOT_KEY }}