GeezerVison is showing github.com — fix(ci): strengthen target remote handling and branch checkout · LeanBitLab/LeanBitLab@9036c7c
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .github/scripts/update_downloads.py +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -511,7 +511,7 @@ def update_sponsor_data_js(sponsor_data_path: str, user_data: dict) -> bool: |
511 | 511 | return False |
512 | 512 |
|
513 | 513 | now_iso = datetime.datetime.now(datetime.timezone.utc).isoformat() |
514 | | - output = f"""// Auto-generated by .github/scripts/update_downloads.py — do not edit manually |
| 514 | + output = f"""// Auto-generated by .github/scripts/update_downloads.py - do not edit manually |
515 | 515 | // Generated: {now_iso} |
516 | 516 | const sponsorData = {{ |
517 | 517 | allTime: {json.dumps(all_time, indent=4)}, |
|
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/sync_site.yml +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
23 | 23 | run: | |
24 | 24 | git config --local user.email "github-actions[bot]@users.noreply.github.com" |
25 | 25 | git config --local user.name "github-actions[bot]" |
26 | | - git checkout -b deploy |
| 26 | + git checkout -B deploy |
27 | 27 | git rm -rf .github |
28 | 28 | git commit -m "deploy: sync from LeanBitLab" |
29 | 29 | git config --local --unset-all "http.https://github.com/.extraheader" || true |
30 | | - git remote add target "https://${SYNC_PAT}@github.com/LeanBitLab/leanbitlab.github.io.git" |
| 30 | + git remote add target "https://${SYNC_PAT}@github.com/LeanBitLab/leanbitlab.github.io.git" 2>/dev/null || git remote set-url target "https://${SYNC_PAT}@github.com/LeanBitLab/leanbitlab.github.io.git" |
31 | 31 | git -c http.https://github.com/.extraheader="" push target deploy:main --force |
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/update_downloads.yml +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -38,11 +38,11 @@ jobs: |
38 | 38 | git commit -m "auto: update README badges, stats card & site stats" |
39 | 39 | git push |
40 | 40 | if [ -n "$SYNC_PAT" ]; then |
41 | | - git checkout -b deploy |
| 41 | + git checkout -B deploy |
42 | 42 | git rm -rf .github |
43 | 43 | git commit -m "deploy: update stats from LeanBitLab" |
44 | 44 | git config --local --unset-all "http.https://github.com/.extraheader" || true |
45 | | - git remote add target "https://${SYNC_PAT}@github.com/LeanBitLab/leanbitlab.github.io.git" || true |
| 45 | + git remote add target "https://${SYNC_PAT}@github.com/LeanBitLab/leanbitlab.github.io.git" 2>/dev/null || git remote set-url target "https://${SYNC_PAT}@github.com/LeanBitLab/leanbitlab.github.io.git" |
46 | 46 | git -c http.https://github.com/.extraheader="" push target deploy:main --force |
47 | 47 | fi |
48 | 48 | fi |
Collapse file
Copy file name to clipboardExpand all lines: sponsor-data.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
1 | | -// Auto-generated by .github/scripts/update_downloads.py — do not edit manually |
| 1 | +// Auto-generated by .github/scripts/update_downloads.py - do not edit manually |
2 | 2 | // Generated: 2026-10-23T03:41:07.448514+00:00 |
3 | 3 | const sponsorData = { |
4 | 4 | allTime: [ |
|