ci: add manual runtime diagnostics
This commit is contained in:
@@ -11,6 +11,19 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
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:
|
check:
|
||||||
if: startsWith(gitea.ref_name, 'v') == false
|
if: startsWith(gitea.ref_name, 'v') == false
|
||||||
runs-on: shell
|
runs-on: shell
|
||||||
|
|||||||
Reference in New Issue
Block a user