fix(ci): replace actions/checkout with native git fetch directly to Forgejo
CI Pipeline - Quality & Build / Build & Validate Frontend (pull_request) Successful in 35s
Details
CI Pipeline - Quality & Build / Build & Validate Frontend (pull_request) Successful in 35s
Details
This commit is contained in:
parent
4269b4cd4e
commit
4753dd2ffa
|
|
@ -16,13 +16,14 @@ jobs:
|
||||||
validate-frontend:
|
validate-frontend:
|
||||||
name: Build & Validate Frontend
|
name: Build & Validate Frontend
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
|
||||||
GITHUB_SERVER_URL: https://git.bryan-bano.com
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
uses: actions/checkout@v4
|
run: |
|
||||||
env:
|
git config --global --add safe.directory "*"
|
||||||
GITHUB_SERVER_URL: https://git.bryan-bano.com
|
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
|
- name: Install Frontend Dependencies
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
|
|
@ -16,13 +16,14 @@ jobs:
|
||||||
validate-frontend:
|
validate-frontend:
|
||||||
name: Build & Validate Frontend
|
name: Build & Validate Frontend
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
|
||||||
GITHUB_SERVER_URL: https://git.bryan-bano.com
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
uses: actions/checkout@v4
|
run: |
|
||||||
env:
|
git config --global --add safe.directory "*"
|
||||||
GITHUB_SERVER_URL: https://git.bryan-bano.com
|
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
|
- name: Install Frontend Dependencies
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue