Skip to content

Commit 16ca02a

Browse files
committed
feat: add debug log support for action
1 parent 1a64151 commit 16ca02a

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/test.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414

1515
- run: apt update && apt install -y curl jq unzip
1616

17+
- run: env
18+
1719
- uses: ./
1820
with:
1921
name: cli/cli

setup.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
set -euo pipefail
44

5+
# Enable debug mode if ACTIONS_RUNNER_DEBUG is true
6+
[[ "${ACTIONS_RUNNER_DEBUG:-false}" == "true" ]] && set -x
7+
58
# Function to print error and exit
69
error() {
710
echo "ERROR: $1" >&2

0 commit comments

Comments
 (0)