remove validate runner
All checks were successful
Reload Act Runner Stack to clear cache for workflows / diff (push) Successful in 1m20s
Reload Act Runner Stack to clear cache for workflows / deploy-gitainer (push) Has been skipped

This commit is contained in:
Martin Dimitrov 2026-03-07 11:59:42 -08:00
parent 62b353d5f6
commit bce61b13bd

View File

@ -1,24 +0,0 @@
name: Validate Runner Reload
on:
workflow_run:
workflows: ["Reload Act Runner Stack to clear cache for workflows"]
types:
- completed
jobs:
validate:
runs-on: ubuntu-22.04
steps:
- name: Wait for Gitainer to restart the runner
run: sleep 30
- name: Check runner age is under 2 minutes
run: |
runner_start=$(docker run --rm --pid=host alpine stat -c %Y /proc/1)
now=$(date +%s)
age_seconds=$((now - runner_start))
echo "Runner age: $age_seconds seconds"
if [ "$age_seconds" -gt 120 ]; then
echo "Validation Failed! Runner did not restart."
exit 1
fi