Skip to content

Commit

Permalink
chore(CI): debug CI
Browse files Browse the repository at this point in the history
  • Loading branch information
lemoustachiste committed May 26, 2023
1 parent 369592c commit 1e4acae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion publish-vc-compliance-result.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ cp node_modules/vc-test-suite/implementations/index.html ./vc-compliance-report.

COMPLIANCE_RESULT=$( cat node_modules/vc-test-suite/implementations/test-status.txt )
echo $COMPLIANCE_RESULT
echo ($COMPLIANCE_RESULT == "compliant")
if [ $COMPLIANCE_RESULT == "compliant" ];
then BADGE_COLOR="green";
else BADGE_COLOR="red";
fi
echo $BADGE_COLOR
## replace first line of README with new badge value - couldn't get sed to work properly
echo "[![Verifiable Credential Compliance result](https://badgen.net/badge/Verifiable%20Credentials%20v1/$COMPLIANCE_RESULT/$BADGE_COLOR?icon=https://www.w3.org/Icons/WWW/w3c_home_nb-v.svg)](https://github.com/blockchain-certificates/cert-issuer/vc-compliance-report.html)" >> /tmp/cert-issuer-readme
tail -n +2 README.md >> /tmp/cert-issuer-readme
Expand Down

0 comments on commit 1e4acae

Please sign in to comment.