From ff7700788b2e1287656be5c8bb1e30797a3873f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=B3=8A=E6=98=8E518370910136?= Date: Sun, 9 Feb 2025 11:51:01 +0800 Subject: [PATCH] Update Why are we using `gitea.com/BoYanZh/checkout`? --- Why-are-we-using-%60gitea.com%2FBoYanZh%2Fcheckout%60%3F.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Why-are-we-using-%60gitea.com%2FBoYanZh%2Fcheckout%60%3F.md b/Why-are-we-using-%60gitea.com%2FBoYanZh%2Fcheckout%60%3F.md index 40899fa..cac1233 100644 --- a/Why-are-we-using-%60gitea.com%2FBoYanZh%2Fcheckout%60%3F.md +++ b/Why-are-we-using-%60gitea.com%2FBoYanZh%2Fcheckout%60%3F.md @@ -1,3 +1,3 @@ -1. `act_runner` only supports URL with format `${host}/${owner}/${name}`, `${host}/git/${owner}/${name}` does not work. Check [here](https://gitea.com/gitea/act/src/commit/165620676543e66a1fcfda6520c65bea3be51ede/pkg/runner/step_action_remote.go#L307). +1. `act_runner` only supports URL with format `${host}/${owner}/${name}`, `${host}/git/${owner}/${name}` does not work. So we can not use self-hosted checkout. Check [here](https://gitea.com/gitea/act/src/commit/165620676543e66a1fcfda6520c65bea3be51ede/pkg/runner/step_action_remote.go#L307). 2. By default, `actions/checkout` also only supports URL with format `${host}/${owner}/${name}`. Check [here](https://gitea.com/actions/checkout/src/commit/85e6279cec87321a52edac9c87bce653a07cf6c2/src/url-helper.ts#L19). 3. `gitea.com/BoYanZh/checkout` is modified, which hardcodes ssh port and our URL format to clone the repo in `act_runner`. Check [here](https://gitea.com/BoYanZh/checkout/src/commit/4c8f4bdc40a644db67b4468842e454e439891c72/src/url-helper.ts#L19). \ No newline at end of file