Skip to content

Commit

Permalink
Prevent null from breaking the deploy script
Browse files Browse the repository at this point in the history
no issue
  • Loading branch information
sam-lord committed Sep 8, 2023
1 parent 9a78bee commit 377190e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
- name: Extract Deployment Name and Namespace
run: |
deployment_name=$(yq e 'select(.kind == "Deployment") | .metadata.name' /tmp/built-manifest.yaml)
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/')
namespace=${namespace:-default}
echo "Deployment Name: $deployment_name"
echo "Namespace: $namespace"
Expand Down

0 comments on commit 377190e

Please sign in to comment.