This commit is contained in:
Dmitry 2025-11-21 02:25:09 +03:00
parent 070adc52fd
commit 88cad155e9

View file

@ -19,10 +19,22 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: Ensure git repo exists
run: |
if [ ! -d ".git" ]; then
echo "Repository is missing .git — reconstructing git metadata"
git init
git remote add origin "${{ github.repositoryUrl }}"
git fetch --depth 1 origin "${{ github.ref }}"
git checkout "${{ github.ref_name }}"
fi
- name: Set up Python and dependencies
run: |
apt-get update -qq