File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,10 +37,17 @@ jobs:
3737 env :
3838 GH_TOKEN : ${{ secrets.MY_GITHUB_TOKEN }}
3939 run : |
40+ # Configure git user
4041 git config user.name "github-actions"
4142 git config user.email "github-actions@github.com"
43+
44+ # Use PAT for authentication
4245 git remote set-url origin https://x-access-token:$GH_TOKEN@github.com/${{ github.repository }}.git
46+
47+ # Stage changes
4348 git add -A
49+
50+ # Commit and push if there are changes
4451 if ! git diff --cached --quiet; then
4552 git commit -m "✨ Data update at $(date -u '+%Y-%m-%d')"
4653 git push
Original file line number Diff line number Diff line change @@ -226,7 +226,7 @@ def main():
226226 if prev_date :
227227 try :
228228 prev_comp_date = (
229- datetime .strptime (prev_date , '%Y-%m-%d' ) - timedelta (days = 1001 )).date ().isoformat ()#todo fix to 1
229+ datetime .strptime (prev_date , '%Y-%m-%d' ) - timedelta (days = 101 )).date ().isoformat ()#todo fix to 1
230230 except :
231231 prev_comp_date = prev_date
232232 except :
You can’t perform that action at this time.
0 commit comments