From ecfe7dd06c9d296198477e2cef07e1a18ba2eea2 Mon Sep 17 00:00:00 2001 From: tligui_y Date: Tue, 26 Aug 2025 04:44:19 +0200 Subject: [PATCH] Update action.yml --- action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 7393155..5d525b7 100644 --- a/action.yml +++ b/action.yml @@ -218,7 +218,7 @@ runs: LOG_FILE="${OUTPUT_DIR}/custom-shell-before.log" mkdir -p "$OUTPUT_DIR" - if [ -z "$(echo "${{ inputs.custom_shell_commands }}" | xargs)" ]; then + if [ -z "$(echo "${{ inputs.custom_shell_commands_before }}" | xargs)" ]; then echo "💡 No custom shell commands found" >> "$LOG_FILE" echo "Exit Code: 0" >> "$LOG_FILE" exit 0 @@ -231,7 +231,7 @@ runs: echo "set -e" echo 'trap "{ EXIT_CODE=\$?; if [ \$EXIT_CODE -eq 0 ]; then echo Exit Code: 0 >> \"$LOG_FILE\"; else echo Exit Code: 1 >> \"$LOG_FILE\"; fi; } 2>/dev/null" EXIT' echo "set -x" - echo "${{ inputs.custom_shell_commands }}" + echo "${{ inputs.custom_shell_commands_before }}" } > custom_commands.sh chmod +x custom_commands.sh