Skip to content

Commit 377190e

Browse files
committed
Prevent null from breaking the deploy script
no issue
1 parent 9a78bee commit 377190e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
- name: Extract Deployment Name and Namespace
7777
run: |
7878
deployment_name=$(yq e 'select(.kind == "Deployment") | .metadata.name' /tmp/built-manifest.yaml)
79-
namespace=$(yq e 'select(.kind == "Deployment") | .metadata.namespace' /tmp/built-manifest.yaml)
79+
namespace=$(yq e 'select(.kind == "Deployment") | .metadata.namespace' /tmp/built-manifest.yaml | sed 's/^null$/default/')
8080
namespace=${namespace:-default}
8181
echo "Deployment Name: $deployment_name"
8282
echo "Namespace: $namespace"

0 commit comments

Comments
 (0)