Skip to content

Commit

Permalink
ci: use bash and add assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
katrinafyi committed Aug 8, 2024
1 parent 1c0d426 commit fe56331
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/run-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,19 @@ jobs:
for part in summary-*.md.part; do
# basename, then everything after "summary-", then everything before ".md.part" (via two rev passes)
testname="$(basename $part | cut -d- -f2- | rev | cut -d. -f3- | rev)"
[[ -n "$testname" ]]
svg="verifyTime-$testname.svg"
ls -l $svg
ls -l "$svg"
# 1920 hours = 80 days
url="$(curl -F"file=@$svg' -Fexpires=1920 http://0x0.st)"
url="$(curl -F"file=@$svg" -Fexpires=1920 http://0x0.st)"
[[ -n "$url" ]]
pasted="$(echo "$pasted" | sed "s#HISTO${testname}HISTO#$url#g")"
done
popd
echo "$pasted" > $GITHUB_STEP_SUMMARY
shell: "bash -xe {0}"

0 comments on commit fe56331

Please sign in to comment.