Skip to content

Commit

Permalink
tox.ini: Create directory for GITHUB_STEP_SUMMARY before writing it
Browse files Browse the repository at this point in the history
Signed-off-by: Bernhard Kaindl <bernhard.kaindl@cloud.com>
  • Loading branch information
bernhardkaindl committed May 9, 2024
1 parent de482a0 commit d46aa2b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,9 @@ commands =
--markdown-report {envlogdir}/coverage-diff.md \
{envlogdir}/coverage.xml; EXIT_CODE=$?;echo $EXIT_CODE; \
GITHUB_STEP_SUMMARY={env:GITHUB_STEP_SUMMARY:.git/GITHUB_STEP_SUMMARY.md}; \
if [ -n "$GITHUB_STEP_SUMMARY" ]; then sed "/title/,/\/style/d" \
{envlogdir}/coverage-diff.html >>"$GITHUB_STEP_SUMMARY"; fi; \
if [ -n "$GITHUB_STEP_SUMMARY" ]; then \
mkdir -p ${GITHUB_STEP_SUMMARY%/*};sed "/title/,/\/style/d"\
{envlogdir}/coverage-diff.html >>"$GITHUB_STEP_SUMMARY"; fi; \
exit $EXIT_CODE'

[lint]
Expand Down

0 comments on commit d46aa2b

Please sign in to comment.