From 64ebfa6c3bda9fe13b139ea2a226d19867cc1d2a Mon Sep 17 00:00:00 2001 From: jknapp Date: Mon, 23 Nov 2026 06:58:28 -0800 Subject: [PATCH] ci: apt-get update before installing inotify-tools for the watcher test Without it the install fails on runners where shellcheck was preinstalled (no apt lists) and the watcher test silently SKIPs. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_0185ukXi4YX5FxJGqhi6qab6 --- .gitea/workflows/build-push.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build-push.yaml b/.gitea/workflows/build-push.yaml index 519e0b1..3687b27 100644 --- a/.gitea/workflows/build-push.yaml +++ b/.gitea/workflows/build-push.yaml @@ -100,7 +100,12 @@ jobs: - name: ols htaccess watcher test (needs inotify-tools; skips if absent) run: | - (apt-get install -y inotify-tools || sudo apt-get install -y inotify-tools) >/dev/null 2>&1 || true + # apt-get update first: the lists exist only if an earlier step had to + # install shellcheck; without them the install fails and the test SKIPs. + if ! command -v inotifywait >/dev/null 2>&1; then + ( (apt-get update && apt-get install -y inotify-tools) || + (sudo apt-get update && sudo apt-get install -y inotify-tools) ) >/dev/null 2>&1 || true + fi ./scripts/tests/ols-htaccess-watcher.test.sh - name: lsphp repo-version lookup test