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:
|
os:
|
||||||
runs-on: linux
|
runs-on: linux
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
|
||||||
packages: write
|
packages: write
|
||||||
steps:
|
steps:
|
||||||
- name: Install tools
|
- name: Install tools
|
||||||
run: dnf install -yq mkosi git-core
|
run: dnf install -yq mkosi
|
||||||
# gitea-runner 6 removed builtin:checkout.
|
|
||||||
- name: Check out
|
- name: Check out
|
||||||
env:
|
run: git 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 }}
|
||||||
|
|||||||
Reference in new issue
Block a user