This repository was archived by the owner on May 3, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -239,3 +239,18 @@ jobs:
239239 echo "✅ Loop complete — $ITERATION commits made this run."
240240 echo "Repos used so far: $(wc -l < .used_repos.txt) / $TOTAL_REPOS"
241241 echo "Logins used so far: $(wc -l < .used_logins.txt)"
242+
243+ # ── Fallback: if no commits were made, increment directly ─────────
244+ if [ $ITERATION -eq 0 ]; then
245+ echo "No logins fetched — performing fallback increment..."
246+ git pull origin main --no-edit 2>/dev/null || true
247+ CURRENT=$(grep -oP '(?<=Counter: )\d+' README.md 2>/dev/null || echo "0")
248+ NEW=$(( CURRENT + 2 ))
249+ sed -i "s/Counter: ${CURRENT}/Counter: ${NEW}/" README.md
250+ git config user.name "github-actions[bot]"
251+ git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
252+ git add README.md
253+ git commit -m "chore: increment counter to $NEW" 2>/dev/null
254+ git push origin main 2>/dev/null
255+ echo "✅ Fallback → counter $CURRENT → $NEW"
256+ fi
You can’t perform that action at this time.
0 commit comments