Skip to content

Commit 3254069

Browse files
committed
grab recent version
1 parent 7d0fec3 commit 3254069

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/pmd.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ jobs:
2020

2121
- name: Run CPD for Fortran
2222
continue-on-error: true
23-
env:
24-
PMD_VERSION: 7.14.0
2523
run: |
24+
# Get latest PMD version from GitHub API
25+
PMD_VERSION=$(curl -s https://api.github.com/repos/pmd/pmd/releases/latest | grep '"tag_name":' | cut -d'"' -f4 | sed 's/pmd_releases\///')
26+
echo "Using PMD version: $PMD_VERSION"
27+
2628
curl -sSL -o pmd.zip \
2729
"https://github.com/pmd/pmd/releases/download/pmd_releases/${PMD_VERSION}/pmd-dist-${PMD_VERSION}-bin.zip"
2830
unzip -q pmd.zip

0 commit comments

Comments
 (0)