fix: replace actions/checkout with custom checkout logic in deploy workflow
This commit is contained in:
@@ -13,10 +13,14 @@ jobs:
|
|||||||
runs-on: host
|
runs-on: host
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout Code
|
||||||
uses: actions/checkout@v4
|
run: |
|
||||||
with:
|
if [ -d ".git" ]; then
|
||||||
fetch-depth: 2
|
git fetch --depth=2
|
||||||
|
git reset --hard FETCH_HEAD
|
||||||
|
else
|
||||||
|
git clone --depth=2 https://${{ gitea.server_url }}/${{ gitea.repository }}.git .
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Check if version changed
|
- name: Check if version changed
|
||||||
id: version_check
|
id: version_check
|
||||||
|
|||||||
Reference in New Issue
Block a user