Update Why are we using gitea.com/BoYanZh/checkout?

张泊明518370910136 2025-02-10 01:08:27 +08:00
parent ed88774fb3
commit fac68377fb

@ -2,4 +2,4 @@
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). 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). 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).
On joj-dev server, we use 0.2.11-focs act_runner, which comes from https://github.com/focs-gitea/act_runner/tree/v0.2.11-focs. It supports `${host}/git/${owner}/${name}`, so we can just use `actions/checkout@focs` now and it will use [https://focs.ji.sjtu.edu.cn/git/actions/checkout/src/branch/focs]. On joj-dev server, we use 0.2.11-focs act_runner, which comes from https://github.com/focs-gitea/act_runner/tree/v0.2.11-focs. It supports `${host}/git/${owner}/${name}`, so we can just use `actions/checkout@focs` now and it will use https://focs.ji.sjtu.edu.cn/git/actions/checkout/src/branch/focs.