gitea-runner clones the actions that jobs use with git, so the image needs git-core. With it and Node.js in the job, actions/checkout works, which replaces the hand-written git fetch. gitea-runner.service pulls the image of the linux label before it starts, so the first job after a boot doesn't wait 27 seconds for it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a0bfce38da
commit
e2a74d4e16
3 files changed
+8
-10
No files matched your search
+3
-10
@@ -25,18 +25,11 @@ jobs:
|
||||
contents: read
|
||||
packages: write
|
||||
steps:
|
||||
# Install tools adds Node.js for actions/checkout.
|
||||
- name: Install tools
|
||||
run: dnf install -yq mkosi git-core
|
||||
# Check out fetches the commit with git. gitea-runner 6 removed
|
||||
# builtin:checkout, and the job image has no Node.js for actions/checkout.
|
||||
run: dnf install -yq mkosi git-core nodejs
|
||||
- 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
|
||||
uses: actions/checkout@v4
|
||||
- name: Build
|
||||
env:
|
||||
KEY: ${{ secrets.SECUREBOOT_KEY }}
|
||||
|
||||
Reference in new issue
Block a user