Skip to content

Commit 4fdb0c3

Browse files
committed
made PMD_COMMAND globally recognized
1 parent f022a85 commit 4fdb0c3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/pmd.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ jobs:
2525
- name: Build PMD
2626
run: |
2727
(cd pmd && mvn clean install -DskipTests> ../pmd.txt)
28-
alias pmd=/pmd/bin/pmd
29-
28+
export PMD_COMMAND="$(pwd)/pmd/bin/pmd"
29+
3030
- name: Running PMD
3131
run: |
32-
(cd pmd && pmd cpd -l fortran pr/src/* > ../pmd-fort.txt)
33-
(cd pmd && pmd cpd -l python pr/toolchain/* > ../pmd-py.txt)
32+
$PMD_COMMAND cpd -l fortran pr/src/* > ../pmd-fort.txt
33+
$PMD_COMMAND cpd -l python pr/toolchain/* > ../pmd-py.txt
3434
3535
- name: Display PMD Reports
3636
run: |

0 commit comments

Comments
 (0)