We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3578d1f commit 1bd72a6Copy full SHA for 1bd72a6
1 file changed
.github/workflows/ci_k8_base.yml
@@ -216,12 +216,14 @@ jobs:
216
git config user.name "github-actions"
217
git config user.email "actions@github.com"
218
219
- # Validate source file exists
+ # Ensure source file exists or initialize it
220
+ mkdir -p "$(dirname "$FILE")"
221
if [ ! -f "$FILE" ]; then
- echo "❌ Source file '$FILE' not found. Aborting."
222
- exit 1
+ echo "⚠️ File '$FILE' not found. Initializing with empty object."
223
+ echo "{}" > "$FILE"
224
fi
225
226
+
227
# Remove worktree if already exists (idempotency)
228
if [ -d "../deploy-worktree" ]; then
229
echo "🧹 Cleaning up existing worktree"
0 commit comments