Skip to content

Commit 3d19085

Browse files
committed
adjust args
1 parent f618e18 commit 3d19085

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/lintdupe.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ const fs = require('fs/promises')
22

33
async function main() {
44
console.log(`In args with: ${process.argv}`)
5-
const masterJson = `${process.argv[2]}/jscpd-report.json`
6-
const branchJson = `${process.argv[3]}/jscpd-report.json`
5+
const masterJson = process.argv[2]
6+
const branchJson = process.argv[3]
77
console.log(`master report located at ${masterJson}`)
88
console.log(`branch report located at ${branchJson}`)
99

.github/workflows/node.js.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
npx jscpd --pattern "packages/**/*.ts" --ignore "**node_modules**,**dist**,**test**" --gitignore --reporters json --output branch
8282
- name: Compare clone count across master and new branch
8383
run: |
84-
node "$GITHUB_WORKSPACE/.github/workflows/lintdupe.js" master.json branch.json
84+
node "$GITHUB_WORKSPACE/.github/workflows/lintdupe.js" master/jscpd-report.json branch/jscpd-report.json
8585
8686
macos:
8787
needs: lint-commits

0 commit comments

Comments
 (0)