fix: change token used for commit reads

This commit is contained in:
gitea-analytics-bot
2026-01-21 23:01:03 -05:00
parent f0176f5004
commit ef226f190d

View File

@@ -28,7 +28,7 @@ jobs:
USER_URL="http://gitea-http:3000/api/v1/users/patrick/heatmap?limit=1000"
RAW_DATA=$(wget -qO- --header="Authorization: token ${{ secrets.GITHUB_TOKEN }}" "$USER_URL")
RAW_DATA=$(wget -qO- --header="Authorization: token ${{ secrets.PAT_TOKEN }}" "$USER_URL")
TOTAL_COMMITS=$(echo "$RAW_DATA" | jq '. | map(.contributions) | add')
echo "Global Commit Velocity: $TOTAL_COMMITS"
@@ -51,5 +51,5 @@ jobs:
echo "No changes"
else
git commit -m "chore: sync code velocity to ${{ env.FORMATTED_LOC }} LOC [skip ci]"
git push http://${{ secrets.GITHUB_TOKEN }}@gitea-http:3000/${{ github.repository }}.git ${{ github.ref_name }}
git push http://${{ secrets.PAT_TOKEN }}@gitea-http:3000/${{ github.repository }}.git ${{ github.ref_name }}
fi