diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 840ebfc5a2..ba1b360223 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -11,6 +11,19 @@ on: workflow_dispatch: jobs: + runtime-diagnostics: + if: gitea.event_name == 'workflow_dispatch' + runs-on: shell + steps: + - name: Read recent CMS runtime errors + run: | + set -e + echo "--- Recent CMS runtime errors ---" + pm2 logs next --lines 250 --nostream 2>&1 \ + | grep -Ei 'error|permissions|permission_ranks|permission_definitions|unknown column|doesn.t exist|digest' \ + | tail -120 \ + || true + check: if: startsWith(gitea.ref_name, 'v') == false runs-on: shell