fix: replace actions/checkout with manual git clone to fix URL path issue
Homelab Main / validate (push) Failing after 1s Details
Homelab Main / deploy (push) Has been skipped Details

This commit is contained in:
jv 2026-09-18 08:55:05 -05:00
parent 6926e20c83
commit 0d6f6ec2a0
1 changed files with 6 additions and 8 deletions

View File

@ -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