Skip to content

Commit daa9e79

Browse files
1 parent 7061654 commit daa9e79

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

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

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

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

7877
- name: Dump Metric Collection Job Data to S3
7978
env:

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

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

31-
const result = spawnSync('npx spectral', [
31+
const result = spawnSync('spectral', [
3232
'lint',
3333
oasFilePath ? oasFilePath : config.defaultOasFilePath,
3434
'--ruleset',

0 commit comments

Comments
 (0)