games_app/deploy/gitea-stack/fix-stuck-actions.sh
Your Name 07ccda0349
Some checks failed
CI / test-and-build (push) Failing after 1m40s
Fix Gitea Actions registry access and runner config
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-17 20:03:55 +02:00

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"