fix(ci): 使用公开域名克隆代码,解决 Runner 无法解析内部 gitea 主机名问题
Build and Push Docker Image / build (push) Failing after 1s
Build and Push Docker Image / build (push) Failing after 1s
This commit is contained in:
1 parent
dc6adb710d
commit
e0f4cb14a0
1 file changed
+3
-1
@@ -13,7 +13,9 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
run: |
|
||||
git clone --depth=1 "https://${{ gitea.actor }}:${{ secrets.GITHUB_TOKEN }}@git.openlocalpdf.com/${{ gitea.repository }}.git" .
|
||||
git checkout "${{ github.sha }}" || true
|
||||
|
||||
- name: Check Runner Environment
|
||||
run: |
|
||||
|
||||
Reference in new issue
Block a user