Skip to content

Commit

Permalink
fix: Missing base kustomization.yaml file wasn't properly supported
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobsvante committed Mar 19, 2024
1 parent 20cd319 commit 397c5f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:
- main

env:
ACTION_NAME: kustomize-deploy-action
FAKE_KUBECONFIG: |
apiVersion: v1
clusters:
Expand Down Expand Up @@ -39,7 +38,6 @@ jobs:

advanced-test:
runs-on: ubuntu-latest
name: Advanced test
env:
KUSTOMIZATION_BASE_DIR: kustomize/base
KUSTOMIZATION_DIR: kustomize/overlays/staging
Expand Down Expand Up @@ -214,7 +212,6 @@ jobs:
simple-test:
runs-on: ubuntu-latest
name: Simple test
env:
KUSTOMIZATION_DIR: overlays/simple
DEBUG: "true"
Expand Down Expand Up @@ -265,7 +262,7 @@ jobs:
bases:
- ../../nginx
EOF
cd ../../..
cd ../..
- name: Create Kubernetes cluster
uses: helm/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ runs:
- name: Parse base kustomization.yaml
uses: juliojimenez/[email protected]
id: kustomization_base
if: hashFiles(${{ inputs.kustomization-base-dir }}/kustomization.yaml) != ''
if: ${{ hashFiles(inputs.kustomization-base-dir) != '' }}
with:
yaml-file: ${{ inputs.kustomization-base-dir }}/kustomization.yaml
multidoc: false
Expand Down

0 comments on commit 397c5f9

Please sign in to comment.