fix: replace actions/checkout with manual git clone to fix URL path issue
This commit is contained in:
parent
6926e20c83
commit
0d6f6ec2a0
|
|
@ -12,10 +12,9 @@ jobs:
|
|||
container: node:18-bullseye
|
||||
steps:
|
||||
- name: Check out repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
token: ${{ secrets.GITEATOKEN }}
|
||||
fetch-depth: 0
|
||||
run: |
|
||||
set -euo pipefail
|
||||
git clone --depth 0 https://${{ secrets.GITEATOKEN }}@lab2025.duckdns.org/git/jv/my-homelab-configs.git .
|
||||
- name: Validate repository
|
||||
run: |
|
||||
set -euo pipefail
|
||||
|
|
@ -29,10 +28,9 @@ jobs:
|
|||
if: ${{ gitea.ref == 'refs/heads/main' }}
|
||||
steps:
|
||||
- name: Check out repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
token: ${{ secrets.GITEATOKEN }}
|
||||
fetch-depth: 0
|
||||
run: |
|
||||
set -euo pipefail
|
||||
git clone --depth 0 https://${{ secrets.GITEATOKEN }}@lab2025.duckdns.org/git/jv/my-homelab-configs.git .
|
||||
- name: Block automatic deploy for external Gitea changes
|
||||
run: |
|
||||
set -euo pipefail
|
||||
|
|
|
|||
Loading…
Reference in New Issue