Some checks failed
CI / test-and-build (push) Failing after 1m40s
Co-authored-by: Cursor <cursoragent@cursor.com>
15 lines
578 B
Bash
15 lines
578 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
NOW="$(date +%s)"
|
|
sudo -u postgres psql -d gitea <<SQL
|
|
SELECT id, title, status, started, stopped FROM action_run ORDER BY id DESC LIMIT 8;
|
|
SELECT id, run_id, status, started, stopped FROM action_run_job ORDER BY id DESC LIMIT 8;
|
|
UPDATE action_run_job SET status = 5, stopped = ${NOW} WHERE status IN (1,2);
|
|
UPDATE action_run SET status = 5, stopped = ${NOW} WHERE status IN (1,2);
|
|
SQL
|
|
cd ~/gitea
|
|
sudo docker compose --profile runner up -d --force-recreate runner
|
|
sleep 5
|
|
sudo docker logs tloto_act_runner --tail 20
|
|
echo "ACTIONS_RESET_OK"
|