We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9ca55b commit 090fb07Copy full SHA for 090fb07
entrypoint.sh
@@ -1,12 +1,10 @@
1
#!/bin/bash
2
-# Function to handle errors
3
-error_handler() {
4
- echo "An error occurred. Exiting..."
5
- exit 1
6
-}
7
-
8
-# Trap errors and call the error_handler function
9
-trap 'error_handler' ERR
+
+# Fail on error
+set -eu -o pipefail
+# Debug
+echo "Running git subtree ${INPUT_ACTION} on ${INPUT_REPO} at ${INPUT_POSITION} with prefix ${INPUT_PREFIX}"
10
11
# Args
12
SQUASH=""
0 commit comments