Skip to content

Commit 3853186

Browse files
Print Node versions used by each task
Later this will be used to find corresponding update issue or create one if it doesn't exist yet.
1 parent fad9481 commit 3853186

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/trackNodeMigration.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import fs from 'fs';
12
import fetchAllPages from './fetchAllPages.js';
23

34
const token = process.argv[2];
@@ -7,3 +8,13 @@ if (!token) {
78

89
const issues = await fetchAllPages(token, 'repos/microsoft/azure-pipelines-tasks/issues', { labels: 'node-migration', state: 'all' });
910
console.log('Found', issues.length, 'Node migration issues');
11+
12+
for (const entry of await fs.promises.readdir('../../Tasks', { withFileTypes: true })) {
13+
if (!entry.isDirectory()) {
14+
continue;
15+
}
16+
17+
console.log('Parsing task', entry.name, 'manifest');
18+
const manifest = JSON.parse(await fs.promises.readFile('../../Tasks/' + entry.name + '/task.json'));
19+
console.log(entry.name, 'uses', Object.keys(manifest.execution));
20+
}

0 commit comments

Comments
 (0)