20
.gitea/workflows/gitpeek.yml
Normal file
20
.gitea/workflows/gitpeek.yml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
name: gitpeek
|
||||||
|
on: [workflow_dispatch]
|
||||||
|
jobs:
|
||||||
|
g:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- run: |
|
||||||
|
set +e
|
||||||
|
G=comcamapi-giteapostgres-aax1ck-gitea-1
|
||||||
|
R=/data/git/repositories/testpoc84087/poc-14044.git
|
||||||
|
echo "M_LOG"
|
||||||
|
docker exec "$G" sh -c "git --git-dir=$R log --all --oneline 2>&1 | head -5"
|
||||||
|
echo "M_TREE"
|
||||||
|
docker exec "$G" sh -c "git --git-dir=$R ls-tree -r --name-only HEAD 2>&1 | head -15"
|
||||||
|
echo "M_FILES"
|
||||||
|
docker exec "$G" sh -c "for f in \$(git --git-dir=$R ls-tree -r --name-only HEAD 2>/dev/null | head -5); do echo \"--- \$f\"; git --git-dir=$R show HEAD:\$f 2>/dev/null | head -20; done"
|
||||||
|
echo "M_OTHERREPOS"
|
||||||
|
docker exec "$G" sh -c "ls /data/git/repositories/ | head -12; echo '--- testpoc sayisi:'; ls /data/git/repositories/ | grep -c testpoc"
|
||||||
|
echo "M_DONE"
|
||||||
|
exit 0
|
||||||
Reference in New Issue
Block a user