Skip to content

Commit

Permalink
Test empty behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
edw-defang committed Aug 20, 2024
1 parent f972d1a commit e9ce2e9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,17 @@ jobs:
DEFANG_GH_ACTION_TEST_MESSAGE: ${{ secrets.MESSAGE }}
DEFANG_INTERNAL_TEST: dfng-test

- name: Deploy-Empty-Params
uses: ./
continue-on-error: true # Ignore dry run error
with:
cli-version: v0.5.40
config-env-vars: ""
cwd: "./test"
compose-files: ""
behavior: ""
env:
DEFANG_INTERNAL_TEST: dfng-test

- name: Teardown
run: defang config rm DEFANG_GH_ACTION_TEST_MESSAGE
2 changes: 1 addition & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ runs:
params+=("-f")
params+=("$filename")
done
if [[ -n ${{ inputs['behavior'] }} ]]; then
if [[ -n "${{ inputs['behavior'] }}" ]]; then
params+=("--behavior=${{ inputs['behavior'] }}")
fi
Expand Down

0 comments on commit e9ce2e9

Please sign in to comment.