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