diff --git a/.gitea/workflows/update.yml b/.gitea/workflows/update.yml index 8ff0cf2e0a..14d22c834f 100644 --- a/.gitea/workflows/update.yml +++ b/.gitea/workflows/update.yml @@ -28,6 +28,33 @@ jobs: NVD_MAX_PAGES: "20" steps: + - name: Install dependencies + shell: bash + run: | + set -Eeuo pipefail + + if command -v apk >/dev/null 2>&1; then + apk add --no-cache \ + bash \ + git \ + python3 \ + util-linux \ + ca-certificates \ + coreutils + + elif command -v apt-get >/dev/null 2>&1; then + apt-get update + apt-get install -y --no-install-recommends \ + git \ + python3 \ + util-linux \ + ca-certificates \ + coreutils + fi + echo "flock:" + command -v flock + flock --version + - name: Verify persistent cache shell: bash run: |