This commit is contained in:
Alex Janka 2024-08-01 14:08:19 +10:00 committed by Alex Janka
parent ab4fdb55a3
commit 07cf30c601
2 changed files with 19 additions and 2 deletions

View file

@ -21,8 +21,13 @@ jobs:
run: git status run: git status
- name: shallow - name: shallow
run: cat .git/shallow run: cat .git/shallow
- name: deepend tree - name: deepen tree
run: git fetch --tags --recurse-submodules=no --depth 100 origin main run: |
depth=0
while ! git describe --tags main; do
depth=$((depth + 1))
git fetch --tags --recurse-submodules=no --depth $depth origin main
done
- name: status - name: status
run: git status run: git status
- name: descibe - name: descibe

12
thing.sh Executable file
View file

@ -0,0 +1,12 @@
#!/usr/bin/env bash
var=0
echo $var
while ! git describe --tags main; do
var=$((var + 1))
echo wow
if ((var > 3)); then
exit 0
fi
done
echo done