From 4753dd2ffa748d8f1b96bac211563d675647d8f1 Mon Sep 17 00:00:00 2001 From: bryancito1090 Date: Tue, 20 Oct 2026 07:50:43 -0500 Subject: [PATCH] fix(ci): replace actions/checkout with native git fetch directly to Forgejo --- .forgejo/workflows/ci.yml | 11 ++++++----- .github/workflows/ci.yml | 11 ++++++----- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 7d02b19..c7121d5 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -16,13 +16,14 @@ jobs: validate-frontend: name: Build & Validate Frontend runs-on: ubuntu-latest - env: - GITHUB_SERVER_URL: https://git.bryan-bano.com steps: - name: Checkout Code - uses: actions/checkout@v4 - env: - GITHUB_SERVER_URL: https://git.bryan-bano.com + run: | + git config --global --add safe.directory "*" + git init + git remote add origin https://git.bryan-bano.com/Bryan.bano/PORTFOLIO.git 2>/dev/null || git remote set-url origin https://git.bryan-bano.com/Bryan.bano/PORTFOLIO.git + git fetch --depth 1 origin ${{ github.sha }} + git checkout --force FETCH_HEAD - name: Install Frontend Dependencies run: | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7d02b19..c7121d5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,13 +16,14 @@ jobs: validate-frontend: name: Build & Validate Frontend runs-on: ubuntu-latest - env: - GITHUB_SERVER_URL: https://git.bryan-bano.com steps: - name: Checkout Code - uses: actions/checkout@v4 - env: - GITHUB_SERVER_URL: https://git.bryan-bano.com + run: | + git config --global --add safe.directory "*" + git init + git remote add origin https://git.bryan-bano.com/Bryan.bano/PORTFOLIO.git 2>/dev/null || git remote set-url origin https://git.bryan-bano.com/Bryan.bano/PORTFOLIO.git + git fetch --depth 1 origin ${{ github.sha }} + git checkout --force FETCH_HEAD - name: Install Frontend Dependencies run: |