Skip to content

Commit 0183d94

Browse files
TopRichardcasparvl
andauthored
Update .github/workflows/test-software.eessi.io.yml
Co-authored-by: Caspar van Leeuwen <33718780+casparvl@users.noreply.github.com>
1 parent 618c711 commit 0183d94

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/test-software.eessi.io.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,12 @@ jobs:
6262
EESSI_VERSIONS=""
6363
6464
# Check for specific versions in the changed easystack files
65+
# The regex pattern matches a prefix, but only returns the part after \K, so that we get only the version
66+
# The sort ensures predictable ordering, and with -u only keeps unique items (neither are probably essential, but both are nice)
67+
# Finally, since the grep returns multiple lines if there are multiple versions that were touched,
68+
# the tr replaces newlies with space, to make this space-separated.
6569
EESSI_VERSIONS=$(git diff --name-only origin/${{ github.base_ref }}...HEAD \
66-
| grep -oP 'easystacks/software\.eessi\.io/\K[0-9]{4}\.[0-9]{2}' \
70+
| grep -oP 'easystacks/software\.eessi\.io/\K[0-9]+\.[0-9]+' \
6771
| sort -u \
6872
| tr '\n' ' ')
6973
echo "PR easystack changes related to EESSI VERSION: $EESSI_VERSIONS"

0 commit comments

Comments
 (0)