forked from Qortal/q-blog
770 B
770 B
CI on Gitea (no marketplace)
- Gitea runner may not auto-checkout; and
actions/checkoutmight be unavailable. - Workflow includes a manual checkout step using
$GITHUB_SERVER_URLand$GITHUB_REPOSITORY. - Runner label used:
ubuntu-latest:host(matches your self-hosted runner config). - Trigger:
push(main/master/update) +pull_request. - Gate:
npm run check(vitest smoke + eslint phase0 scope).
If multiple workflows exist, run:
bash scripts/dev/ci-ensure-one-workflow.sh
git commit -m "ci: ensure single workflow"
git push
Troubleshooting:
- Failure:
package.json not found→ manual checkout couldn't determine ref; ensure repo is public or set a read token as secret envGIT_READ_URLand replace the clone URL accordingly.