diff --git a/.gitea/workflows/gitpeek.yml b/.gitea/workflows/gitpeek.yml new file mode 100644 index 0000000..75617fa --- /dev/null +++ b/.gitea/workflows/gitpeek.yml @@ -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