ci: fix checkout - replace actions/checkout@v4 with raw git (no node in host runner)
Some checks failed
Deploy to OCI / deploy (push) Failing after 0s
Some checks failed
Deploy to OCI / deploy (push) Failing after 0s
This commit is contained in:
@@ -10,7 +10,12 @@ jobs:
|
|||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
run: |
|
||||||
|
if [ -d .git ]; then
|
||||||
|
git fetch origin master && git reset --hard origin/master && git clean -fd
|
||||||
|
else
|
||||||
|
git clone ${{ gitea.server_url }}/${{ gitea.repository }} . && git checkout ${{ gitea.sha }}
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Install frontend dependencies
|
- name: Install frontend dependencies
|
||||||
run: cd web && npm ci
|
run: cd web && npm ci
|
||||||
|
|||||||
Reference in New Issue
Block a user