Skip to content

Commit aca9604

Browse files
committed
refactor github actions
1 parent 081b968 commit aca9604

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/copyPasteDetection.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@
33

44
name: Copy-Paste Detection
55

6-
on:
7-
pull_request:
8-
branches: [master, feature/*, staging]
9-
6+
on: [workflow_call]
107
jobs:
118
jscpd:
129
runs-on: ubuntu-latest

.github/workflows/node.js.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ jobs:
5959
- run: npm ci
6060
- run: npm run testCompile
6161
- run: npm run lint
62+
jscpd:
63+
needs: lint-commits
64+
uses: ./github/workflows/copyPasteDetection.yml
6265

6366
macos:
6467
needs: lint-commits

0 commit comments

Comments
 (0)