Skip to content

Runner directory is not a git repository - needs setup fix #188

@gounthar

Description

@gounthar

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-runner

Verification

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.0

Reference

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions