diff --git a/.gitea/workflows/homelab-main.yml b/.gitea/workflows/homelab-main.yml index 0019669..1699b22 100644 --- a/.gitea/workflows/homelab-main.yml +++ b/.gitea/workflows/homelab-main.yml @@ -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