File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 *
55 * Usage: node scripts/count-async-functions.mjs
66 */
7- import { readFileSync } from 'node:fs' ;
7+ import { readFileSync , appendFileSync , writeFileSync } from 'node:fs' ;
88import { Project , SyntaxKind } from 'ts-morph' ;
99
1010function getSourcePathsFromPackageJson ( ) {
@@ -84,7 +84,6 @@ console.log('');
8484console . log ( `Migration (trend): ${ asyncFunctions } /${ asyncFunctions + callbackFunctions } (${ migrationPercent } %)` ) ;
8585
8686if ( process . env . GITHUB_STEP_SUMMARY ) {
87- const { appendFileSync, writeFileSync } = await import ( 'node:fs' ) ;
8887 appendFileSync ( process . env . GITHUB_STEP_SUMMARY , [
8988 '## Async/Await Migration Progress' ,
9089 '' ,
Original file line number Diff line number Diff line change @@ -111,6 +111,7 @@ jobs:
111111
112112 async-migration-report :
113113 runs-on : ubuntu-24.04
114+ if : startsWith(github.ref, 'refs/heads/development/')
114115 steps :
115116 - name : Checkout
116117 uses : actions/checkout@v4
You can’t perform that action at this time.
0 commit comments