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
|
container: node:18-bullseye
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
uses: actions/checkout@v4
|
run: |
|
||||||
with:
|
set -euo pipefail
|
||||||
token: ${{ secrets.GITEATOKEN }}
|
git clone --depth 0 https://${{ secrets.GITEATOKEN }}@lab2025.duckdns.org/git/jv/my-homelab-configs.git .
|
||||||
fetch-depth: 0
|
|
||||||
- name: Validate repository
|
- name: Validate repository
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
@ -29,10 +28,9 @@ jobs:
|
||||||
if: ${{ gitea.ref == 'refs/heads/main' }}
|
if: ${{ gitea.ref == 'refs/heads/main' }}
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
uses: actions/checkout@v4
|
run: |
|
||||||
with:
|
set -euo pipefail
|
||||||
token: ${{ secrets.GITEATOKEN }}
|
git clone --depth 0 https://${{ secrets.GITEATOKEN }}@lab2025.duckdns.org/git/jv/my-homelab-configs.git .
|
||||||
fetch-depth: 0
|
|
||||||
- name: Block automatic deploy for external Gitea changes
|
- name: Block automatic deploy for external Gitea changes
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue