remove validate runner
This commit is contained in:
parent
62b353d5f6
commit
bce61b13bd
@ -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
|
|
||||||
Loading…
x
Reference in New Issue
Block a user