🔧 Skip GitHub-only validation jobs on non-GitHub forges #7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "ci/forgejo-action-urls"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
401 Repository not loaded properly in HACS.validate-hassfestuses a Docker-based action. Forgejo's act-based runner has no Docker socket, so it fails withdocker: command not found.if: github.server_url == 'https://github.com'. On GitHub they run exactly as before; on Forgejo they're skipped cleanly. No URL rewriting needed — these jobs simply don't run where they aren't supported.Test plan
validate-hacsandvalidate-hassfestshow as skipped, the workflow is green.Forgejo Actions resolves bare `owner/repo` references against its own registry at `data.forgejo.org`, which mirrors `actions/*` but not `hacs/action` nor `home-assistant/actions`. The `validate-hacs` and `validate-hassfest` jobs therefore fail on Forgejo with: fatal: repository 'https://data.forgejo.org/hacs/action/' not found Prefixing those `uses:` entries with `https://github.com/` forces the runner to fetch them from GitHub directly, which both Forgejo and GitHub Actions honor. `actions/checkout@v3` works as-is because it IS mirrored on data.forgejo.org; it's left alone here and pinned to v4 in a separate PR.🔧 (AI) Use full github.com URLs for non-mirrored actionsto 🔧 Use full github.com URLs for non-mirrored actions5e583d45e9995041684c🔧 Use full github.com URLs for non-mirrored actionsto 🔧 (AI) Skip GitHub-only validation jobs on non-GitHub forges995041684cd5083b37e5d5083b37e5692c19ef00692c19ef00070e562b06🔧 (AI) Skip GitHub-only validation jobs on non-GitHub forgesto 🔧 Skip GitHub-only validation jobs on non-GitHub forges