fix: check out with git again
actions/checkout needs Node.js in every job and fetches the action from GitHub. Four lines of git need neither. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e0cd5db5c5
commit
0a68a046ef
1 file changed
+10
-3
+10
-3
@@ -25,11 +25,18 @@ jobs:
|
|||||||
contents: read
|
contents: read
|
||||||
packages: write
|
packages: write
|
||||||
steps:
|
steps:
|
||||||
# Install tools adds Node.js for actions/checkout.
|
|
||||||
- name: Install tools
|
- name: Install tools
|
||||||
run: dnf install -yq mkosi git-core nodejs26
|
run: dnf install -yq mkosi git-core
|
||||||
|
# Check out fetches the commit with git, which needs no Node.js and no
|
||||||
|
# action from GitHub. gitea-runner 6 removed builtin:checkout.
|
||||||
- name: Check out
|
- name: Check out
|
||||||
uses: actions/checkout@v4
|
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
|
||||||
- name: Build
|
- name: Build
|
||||||
env:
|
env:
|
||||||
KEY: ${{ secrets.SECUREBOOT_KEY }}
|
KEY: ${{ secrets.SECUREBOOT_KEY }}
|
||||||
|
|||||||
Reference in new issue
Block a user