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 != ''