fix: use native git instead of actions/checkout to avoid missing nodejs
This commit is contained in:
parent
d0a4992cd6
commit
f46365a317
@ -34,9 +34,12 @@ jobs:
|
|||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
run: |
|
||||||
with:
|
git config --global --add safe.directory ${{ github.workspace }}
|
||||||
fetch-depth: 1
|
git init
|
||||||
|
git remote add origin ${{ github.server_url }}/${{ github.repository }}.git
|
||||||
|
git fetch --depth=1 origin ${{ github.sha }}
|
||||||
|
git checkout ${{ github.sha }}
|
||||||
|
|
||||||
- name: Fix permissions
|
- name: Fix permissions
|
||||||
run: chown -R $(whoami):$(whoami) ${{ github.workspace }} || true
|
run: chown -R $(whoami):$(whoami) ${{ github.workspace }} || true
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user