From 2f6ddbfc84226b9909479cb3ec2ee25fecd6b0c7 Mon Sep 17 00:00:00 2001 From: tligui_y Date: Tue, 5 Aug 2025 16:24:57 +0200 Subject: [PATCH] Update action.yml --- action.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/action.yml b/action.yml index 20e4792..5d1cf1b 100644 --- a/action.yml +++ b/action.yml @@ -61,13 +61,15 @@ runs: echo "📜 Executing custom shell commands..." echo "${{ inputs.custom_shell_commands }}" > custom_commands.sh chmod +x custom_commands.sh - ./custom_commands.sh | bash >> $LOG_FILE 2>&1 || { - echo "❌ Custom shell failed" >> $LOG_FILE + + ./custom_commands.sh >> "$LOG_FILE" 2>&1 || { + echo "❌ Custom shell failed" >> "$LOG_FILE" exit 1 } - echo "✅ Custom shell compiled" >> $LOG_FILE - echo "Exit Code: 0" >> $LOG_FILE + echo "✅ Custom shell executed" >> "$LOG_FILE" + echo "Exit Code: 0" >> "$LOG_FILE" + - name: Install optional apt packages if: inputs.apt_packages != ''