Skip to content

Commit 635aa34

Browse files
authored
Fix date extraction in check-codelist-version.yml
1 parent a8ac76c commit 635aa34

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

.github/workflows/check-codelist-version.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ jobs:
4040
# Get the full line containing the highest version, then extract the date
4141
# Format: "* Mar 2, 2026 - Version 94 of the ENTSO-E Code list is published."
4242
line=$(echo "$response" | grep "Version $version " | head -1)
43-
date=$(echo "$line" | grep -oP '[A-Z][a-z]{2}\s+\d{1,2},\s+\d{4} | head -1')
44-
date=$(echo $date | head -1)
43+
date=$(echo "$line" | grep -oP '[A-Z][a-z]{2}\s+\d{1,2},\s+\d{4}' | head -1)
4544
4645
if [ -z "$version" ]; then
4746
echo "Failed to extract version number"

0 commit comments

Comments
 (0)