fix: check out with one git clone
agentos is public, so the clone needs no token. The job image has git. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
00daa97950
commit
e39df872b3
1 file changed
+2
-10
+2
-10
@@ -20,20 +20,12 @@ jobs:
|
||||
os:
|
||||
runs-on: linux
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
steps:
|
||||
- name: Install tools
|
||||
run: dnf install -yq mkosi git-core
|
||||
# gitea-runner 6 removed builtin:checkout.
|
||||
run: dnf install -yq mkosi
|
||||
- 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 clone -q --depth 1 -b ${{ gitea.ref_name }} ${{ gitea.server_url }}/${{ gitea.repository }} .
|
||||
- name: Build
|
||||
env:
|
||||
KEY: ${{ secrets.SECUREBOOT_KEY }}
|
||||
|
||||
Reference in new issue
Block a user