fix(ci): clear workspace before git clone + replace GitHub actions with shell commands #14

Merged
radu merged 1 commit from fix/ci-final into main 2026-07-20 10:09:10 +00:00
Owner

Root cause: git clone URL . fails on the Forgejo runner because the workspace directory already contains files (created by the runner framework). The diagnostic workflow proved git clone works to a new directory (/tmp/test-clone) but not to the existing workspace.

Fix:

  1. Clear the workspace (shopt -s dotglob && rm -rf *) before cloning
  2. Replace peaceiris/actions-hugo@v3 with direct curl download of Hugo extended .deb
  3. Replace garygrossgarten/github-action-scp@release with raw ssh/scp commands
  4. Remove actions/setup-go and actions/cache (not needed for Hugo builds)
Root cause: `git clone URL .` fails on the Forgejo runner because the workspace directory already contains files (created by the runner framework). The diagnostic workflow proved git clone works to a new directory (`/tmp/test-clone`) but not to the existing workspace. Fix: 1. Clear the workspace (`shopt -s dotglob && rm -rf *`) before cloning 2. Replace `peaceiris/actions-hugo@v3` with direct `curl` download of Hugo extended .deb 3. Replace `garygrossgarten/github-action-scp@release` with raw ssh/scp commands 4. Remove `actions/setup-go` and `actions/cache` (not needed for Hugo builds)
The Forgejo runner's workspace already contains files (created by
the runner framework). git clone into a non-empty directory fails.
Use shopt -s dotglob && rm -rf * to clean the workspace before cloning.
radu merged commit 06004c5776 into main 2026-07-20 10:09:10 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
radu/blog!14
No description provided.