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