File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616 - name : Checkout
1717 uses : actions/checkout@v4
1818 with :
19- persist-credentials : false # important to allow using PAT for push
19+ persist-credentials : false # Allow using custom token for push
2020
2121 - name : Setup Python
2222 uses : actions/setup-python@v5
@@ -33,16 +33,13 @@ jobs:
3333 PYTHONUNBUFFERED : ' 1'
3434 run : python scrape_ollama.py
3535
36- - name : Configure Git to use PAT
36+ - name : Commit and push changes
3737 env :
3838 GH_TOKEN : ${{ secrets.MY_GITHUB_TOKEN }}
3939 run : |
40- git config user.name github-actions
41- git config user.email github-actions@github.com
40+ git config user.name " github-actions"
41+ git config user.email " github-actions@github.com"
4242 git remote set-url origin https://x-access-token:$GH_TOKEN@github.com/${{ github.repository }}.git
43-
44- - name : Commit and push changes
45- run : |
4643 git add -A
4744 if ! git diff --cached --quiet; then
4845 git commit -m "✨ Data update at $(date -u '+%Y-%m-%d')"
Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ def main():
236236 if prev_comp_date and prev_success :
237237 filtered_models = {name : info for name , info in models_data .items () if
238238 info .get ('update_date' ) and info .get ('update_date' ) >= prev_comp_date }
239- print (f"! prev data was { prev_comp_date } and f:{ len (filtered_models )} m:{ len (filtered_models )} " )
239+ print (f"! prev data was { prev_comp_date } and f:{ len (filtered_models )} m:{ len (models_data )} " )
240240 all_tags_data , tags_data_status = get_all_tags_data (filtered_models or models_data )
241241 count_tags = {m : len (tags_info ) for m , tags_info in all_tags_data .items ()}
242242 models_data = {m : {** model_info , "tag_count" : count_tags .get (m )} if count_tags .get (m , None ) else model_info
You can’t perform that action at this time.
0 commit comments