fix(ci): use updated container for stats workflow

This commit is contained in:
patrick committed 2026-10-03 11:27:15 -04:00
1 parent bf27846a2d
commit 17c2e27b84
1 file changed
+10 -10
+10 -10
View File
@@ -9,6 +9,8 @@ on:
jobs:
sync-stats:
runs-on: ubuntu-latest
container:
image: ghcr.io/catthehacker/ubuntu:act-24.04
steps:
- name: Manual Internal Checkout
run: |
@@ -20,18 +22,16 @@ jobs:
git fetch origin
git rebase origin/${{ github.ref_name }}
- name: Install dependencies
env:
DEBIAN_FRONTEND: noninteractive
run: |
set -eu
apt-get update
apt-get install -y --no-install-recommends jq python3
- 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
if ! command -v python3 &> /dev/null; then
if command -v apk &> /dev/null; then apk add --no-cache python3;
elif command -v apt-get &> /dev/null; then apt-get update && apt-get install -y python3; fi
fi
# Use our own heatmap.json instead of Gitea API
HEATMAP_FILE="public/heatmap.json"
TOTAL_COMMITS=$(jq '[.days[] | .count] | add' "$HEATMAP_FILE")