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:
|
||||
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: |
|
||||
|
|
|
|||
|
|
@ -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: |
|
||||
|
|
|
|||
Loading…
Reference in New Issue