-
Notifications
You must be signed in to change notification settings - Fork 0
Runner directory is not a git repository - needs setup fix #188
Copy link
Copy link
Open
Labels
Description
Problem
The self-hosted runner at ~/github-act-runner-test is not a valid git repository, causing the update-runner.yml workflow to fail with proper validation.
Evidence: https://github.com/gounthar/docker-for-riscv64/actions/runs/19852640562
❌ Error: /home/poddingue/github-act-runner-test is not a git repository
This directory should be a clone of github-act-runner.
Root Cause
The directory /home/poddingue/github-act-runner-test exists but is missing the .git directory, making it invalid for the update workflow which needs to:
- Check current version via git tags
- Pull latest code
- Checkout specific versions
Solution
SSH into the runner machine (BananaPi F3 at 192.168.1.185) and fix the directory:
# Backup current directory
cd ~
mv github-act-runner-test github-act-runner-test.backup
# Clone fresh repository
git clone https://github.com/ChristopherHX/github-act-runner.git github-act-runner-test
cd github-act-runner-test
# Build the runner
go build -v -o github-act-runner .
# Restart the service
sudo systemctl restart github-runnerVerification
After fixing, verify the runner is working:
# Check runner status
systemctl status github-runner
# Verify git repository
cd ~/github-act-runner-test
git status
git describe --tags
# Test the update workflow
gh workflow run update-runner.yml -f version=v0.12.0Reference
- RUNNER-SETUP.md - Complete runner setup instructions
- Original issue: Building cagent v1.9.30 for RISC-V64 #180 (fixed workflow validation)
- This is a runner configuration issue, not a workflow issue
Reactions are currently unavailable