File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -493,14 +493,19 @@ jobs:
493
493
494
494
steps :
495
495
- 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
497
497
run : |
498
498
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' \
500
500
cabal.project \
501
501
| 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
502
506
git fetch https://github.com/intersectmbo/formal-ledger-specifications.git MAlonzo-code
503
- git show -s $TAG || { \
507
+
508
+ git show -s "$TAG" || { \
504
509
echo "Commit $TAG was not found on the MAlonzo-code branch of formal-ledger-specifications."
505
510
exit 1
506
511
}
You can’t perform that action at this time.
0 commit comments