fix: install jq since Alpine lacks it

This commit is contained in:
gitea-analytics-bot
2026-01-21 22:39:31 -05:00
parent 1365e894ea
commit fc5cbb29eb

View File

@@ -21,6 +21,11 @@ jobs:
- name: Process Statistics and Update README
run: |
if ! command -v jq &> /dev/null; then
if command -v apk &> /dev/null; then apk add --no-cache jq;
elif command -v apt-get &> /dev/null; then apt-get update && apt-get install -y jq; fi
fi
USER_URL="http://gitea-http:3000/api/v1/users/patrick/heatmap"
RAW_DATA=$(wget -qO- --header="Authorization: token ${{ secrets.GITHUB_TOKEN }}" "$USER_URL")