Skip to content

Commit 603b212

Browse files
authored
handle debug option (#15)
1 parent 01986cb commit 603b212

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ runs:
3535
- name: Download roxctl
3636
shell: bash
3737
run: |
38+
set -euo pipefail ${RUNNER_DEBUG:+-x}
3839
case "${{ runner.os }}" in
3940
macOS) OS=darwin EXT='' ;;
4041
Windows) OS=windows EXT='.exe' ;;
@@ -56,6 +57,7 @@ runs:
5657
fi
5758
mkdir -p ${{ inputs.install-dir }}
5859
curl -H "Authorization: Bearer ${{ inputs.central-token }}" -H "User-Agent: roxctl-installer-GHA" \
60+
${RUNNER_DEBUG:+--verbose} \
5961
${SKIP_TLS_VERIFY}--fail -S -L --retry 5 \
6062
"${ENDPOINT}${EXT}" --output "${{ inputs.install-dir }}/roxctl${EXT}"
6163
chmod +x "${{ inputs.install-dir }}/roxctl${EXT}"

0 commit comments

Comments
 (0)