File tree Expand file tree Collapse file tree 3 files changed +13
-9
lines changed
Expand file tree Collapse file tree 3 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -61,12 +61,11 @@ jobs:
6161 git config --global user.name "github-actions[bot]"
6262
6363 # Stage the Git index change of the auto-generated files
64- git add readme.md prs.md issues.md
64+ git add readme.md prs.md issues.md identical-forks.md
6565 git add by-name-asc.md by-name-desc.md
6666 git add by-pushed_at-asc.md by-pushed_at-desc.md
6767 git add by-size-asc.md by-size-desc.md
6868 git add by-updated_at-asc.md by-updated_at-desc.md
69- git add identical-forks.json
7069
7170 # Bail if there are no changes to commit and hence no GitHub Pages to build
7271 if git diff-index --quiet HEAD --; then
Original file line number Diff line number Diff line change @@ -488,13 +488,18 @@ const identicalForksMarkDown =
488488 ? ""
489489 : identicalForks . length === 1
490490 ? `\n[One${ nbsp } identical${ nbsp } fork:${ nbsp } \`${ identicalForks [ 0 ] } \`${ nbsp } 🍴⚠️](${ process . env . GITHUB_SERVER_URL } /${ login } /${ identicalForks [ 0 ] } )`
491- : `\n[${ identicalForks . length } ${ nbsp } identical${ nbsp } forks${ nbsp } 🍴⚠️](identical-forks.json)` ;
492- await Bun . write (
493- "identical-forks.json" ,
494- JSON . stringify ( identicalForks , null , 2 )
495- ) ;
491+ : `\n[${ identicalForks . length } ${ nbsp } identical${ nbsp } forks${ nbsp } 🍴⚠️](identical-forks.md)` ;
492+ const identicalForksContentMarkDown =
493+ "# Identical forks\n\n" +
494+ identicalForks
495+ . map (
496+ ( fork ) => `- [${ fork } ](${ process . env . GITHUB_SERVER_URL } /${ login } /${ fork } )`
497+ )
498+ . join ( "\n\n" ) +
499+ "\n" ;
500+ await Bun . write ( "identical-forks.md" , identicalForksContentMarkDown ) ;
496501if ( identicalForks . length === 0 ) {
497- await Bun . file ( "identical-forks.json " ) . delete ( ) ;
502+ await Bun . file ( "identical-forks.md " ) . delete ( ) ;
498503}
499504
500505const followerCount = followers . filter (
Original file line number Diff line number Diff line change 1515[ 3  ; PRs  ; 🎁] ( prs.md ) ᐧ
1616[ 498  ; todos  ; 💪] ( todos.json ) ᐧ
1717[ 24  ; forks  ; 🍴] ( https://github.com/TomasHubelbauer?tab=repositories&q=&type=fork ) ᐧ
18- [ 18  ; identical  ; forks  ; 🍴⚠️] ( identical-forks.json )
18+ [ 18  ; identical  ; forks  ; 🍴⚠️] ( identical-forks.md )
1919
2020</div >
2121
You can’t perform that action at this time.
0 commit comments