We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a78bee commit 377190eCopy full SHA for 377190e
.github/workflows/deploy.yml
@@ -76,7 +76,7 @@ jobs:
76
- name: Extract Deployment Name and Namespace
77
run: |
78
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)
+ namespace=$(yq e 'select(.kind == "Deployment") | .metadata.namespace' /tmp/built-manifest.yaml | sed 's/^null$/default/')
80
namespace=${namespace:-default}
81
echo "Deployment Name: $deployment_name"
82
echo "Namespace: $namespace"
0 commit comments