Skip to content

Commit 3fe4eec

Browse files
committed
👷 restrict counter only on dev branch
Issue: CLDSRV-860
1 parent a6705dd commit 3fe4eec

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/scripts/count-async-functions.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Usage: node scripts/count-async-functions.mjs
66
*/
7-
import { readFileSync } from 'node:fs';
7+
import { readFileSync, appendFileSync, writeFileSync } from 'node:fs';
88
import { Project, SyntaxKind } from 'ts-morph';
99

1010
function getSourcePathsFromPackageJson() {
@@ -84,7 +84,6 @@ console.log('');
8484
console.log(`Migration (trend): ${asyncFunctions}/${asyncFunctions + callbackFunctions} (${migrationPercent}%)`);
8585

8686
if (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
'',

.github/workflows/tests.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)