Skip to content

Commit

Permalink
Merge pull request #59 from Andrew-Chen-Wang/test-non-zero
Browse files Browse the repository at this point in the history
if non-zero $RUNNER_DEBUG
  • Loading branch information
jcbhmr authored May 29, 2023
2 parents 9895b2d + 4ba990a commit fead196
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/clone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
set -e
# When a job fails, you can re-run it with debug mode enabled. This is exposed
# to scripts via the ${{ runner.debug }} or $RUNNER_DEBUG variable. Here, we
# use the -z test to see if the $RUNNER_DEBUG exists. If so, we use the -x flag
# use the -n test to see if the $RUNNER_DEBUG exists. If so, we use the -x flag
# to print a '+ cmd arg1 arg2' of each command that's run in the script. This
# helps with debugging what commands and $VAR expansions are actually happening.
if [[ -z $RUNNER_DEBUG ]]; then
if [[ -n $RUNNER_DEBUG ]]; then
set -x
fi

Expand Down
4 changes: 2 additions & 2 deletions src/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
set -e
# When a job fails, you can re-run it with debug mode enabled. This is exposed
# to scripts via the ${{ runner.debug }} or $RUNNER_DEBUG variable. Here, we
# use the -z test to see if the $RUNNER_DEBUG exists. If so, we use the -x flag
# use the -n test to see if the $RUNNER_DEBUG exists. If so, we use the -x flag
# to print a '+ cmd arg1 arg2' of each command that's run in the script. This
# helps with debugging what commands and $VAR expansions are actually happening.
if [[ -z $RUNNER_DEBUG ]]; then
if [[ -n $RUNNER_DEBUG ]]; then
set -x
fi

Expand Down

0 comments on commit fead196

Please sign in to comment.