Skip to content

Commit 60bea07

Browse files
committed
Fix github action SRP-check
1 parent 53d593d commit 60bea07

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/haskell.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -493,14 +493,19 @@ jobs:
493493

494494
steps:
495495
- uses: actions/checkout@v4
496-
- name: Check if provided formal-ledger-specifications SRP commit hash exists
496+
- name: Check formal-ledger-specifications SRP commit hash
497497
run: |
498498
TAG=$(sed -ne \
499-
'/ *location: *https:\/\/github.com\/IntersectMBO\/formal-ledger-specifications.git/,/--sha256/ p' \
499+
'/ *location: *https:\/\/github.com\/IntersectMBO\/formal-ledger-specifications.git/,/tag:/ p' \
500500
cabal.project \
501501
| sed -ne 's/^ *tag: *//p')
502+
if [ -z "$TAG" ]; then
503+
echo "Error: IntersectMBO/formal-ledger-specifications SRP tag not found."
504+
exit 1
505+
fi
502506
git fetch https://github.com/intersectmbo/formal-ledger-specifications.git MAlonzo-code
503-
git show -s $TAG || { \
507+
508+
git show -s "$TAG" || { \
504509
echo "Commit $TAG was not found on the MAlonzo-code branch of formal-ledger-specifications."
505510
exit 1
506511
}

0 commit comments

Comments
 (0)