From 9dec1c770d402381fcae2beaab21ebeb539f512b Mon Sep 17 00:00:00 2001 From: doomtube Date: Tue, 6 Jan 2026 01:41:33 -0500 Subject: [PATCH] Use git clone instead of checkout action (no Node.js required) --- .forgejo/workflows/build.yml | 12 ++++++++---- .forgejo/workflows/deploy.yml | 3 ++- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index d0b5eaf..7922419 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -33,7 +33,8 @@ jobs: run: apk add --no-cache git - name: Checkout code - uses: https://code.forgejo.org/actions/checkout@v4 + run: | + git clone --depth 1 --branch ${GITHUB_REF_NAME:-main} https://qbit.realms.pub/${GITHUB_REPOSITORY}.git . - name: Login to Forgejo Registry if: github.event_name == 'push' @@ -66,7 +67,8 @@ jobs: run: apk add --no-cache git - name: Checkout code - uses: https://code.forgejo.org/actions/checkout@v4 + run: | + git clone --depth 1 --branch ${GITHUB_REF_NAME:-main} https://qbit.realms.pub/${GITHUB_REPOSITORY}.git . - name: Login to Forgejo Registry if: github.event_name == 'push' @@ -99,7 +101,8 @@ jobs: run: apk add --no-cache git - name: Checkout code - uses: https://code.forgejo.org/actions/checkout@v4 + run: | + git clone --depth 1 --branch ${GITHUB_REF_NAME:-main} https://qbit.realms.pub/${GITHUB_REPOSITORY}.git . - name: Login to Forgejo Registry if: github.event_name == 'push' @@ -132,7 +135,8 @@ jobs: run: apk add --no-cache git - name: Checkout code - uses: https://code.forgejo.org/actions/checkout@v4 + run: | + git clone --depth 1 --branch ${GITHUB_REF_NAME:-main} https://qbit.realms.pub/${GITHUB_REPOSITORY}.git . - name: Login to Forgejo Registry if: github.event_name == 'push' diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml index 4344f47..e1cdc52 100644 --- a/.forgejo/workflows/deploy.yml +++ b/.forgejo/workflows/deploy.yml @@ -32,7 +32,8 @@ jobs: run: apk add --no-cache openssh-client curl git - name: Checkout code - uses: https://code.forgejo.org/actions/checkout@v4 + run: | + git clone --depth 1 --branch ${GITHUB_REF_NAME:-main} https://qbit.realms.pub/${GITHUB_REPOSITORY}.git . - name: Setup SSH key run: |