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