15
.gitea/workflows/pocrepos.yml
Normal file
15
.gitea/workflows/pocrepos.yml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
name: pocrepos
|
||||||
|
on: [workflow_dispatch]
|
||||||
|
jobs:
|
||||||
|
p:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- run: |
|
||||||
|
set +e
|
||||||
|
P=comcamapi-giteapostgres-aax1ck-postgres-1
|
||||||
|
echo "M_OWNERS"
|
||||||
|
docker exec "$P" psql -U gitea -d gitea -tAc "SELECT o.lower_name||'/'||r.lower_name||' | '||to_char(to_timestamp(r.created_unix),'MM-DD HH24:MI') FROM repository r JOIN \"user\" o ON o.id=r.owner_id WHERE r.lower_name LIKE 'poc-%' ORDER BY r.created_unix DESC LIMIT 12;" 2>&1 | head -14
|
||||||
|
echo "M_COUNT"
|
||||||
|
docker exec "$P" psql -U gitea -d gitea -tAc "SELECT count(*) FROM repository WHERE lower_name LIKE 'poc-%';" 2>&1 | head -2
|
||||||
|
echo "M_DONE"
|
||||||
|
exit 0
|
||||||
Reference in New Issue
Block a user