Skip to content

Commit 0182e8f

Browse files
1 parent daa9e79 commit 0182e8f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/release-IPA-metrics.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ jobs:
7272
# run-id: ${{ github.run_id }}
7373

7474
- name: Run Metric Collection Job
75-
run: node ./tools/spectral/ipa/metrics/scripts/runMetricCollection.js ${{ github.workspace }}/openapi/v2.json # TODO: Change to foas in release run
75+
working-directory: ./tools/spectral/ipa/metrics/scripts
76+
run: node runMetricCollection.js ../../../../../openapi/v2.json # TODO: Change to foas in release run
7677

7778
- name: Dump Metric Collection Job Data to S3
7879
env:

tools/spectral/ipa/metrics/scripts/runMetricCollection.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ if (oasFilePath && !fs.existsSync(oasFilePath)) {
2828
process.exit(1);
2929
}
3030

31-
const result = spawnSync('spectral', [
31+
const result = spawnSync('npx', [
32+
'spectral',
3233
'lint',
3334
oasFilePath ? oasFilePath : config.defaultOasFilePath,
3435
'--ruleset',

0 commit comments

Comments
 (0)