fix: change token used for commit reads
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user