Skip to content

Commit e67be4b

Browse files
committed
Change behavior to mode
1 parent 2587523 commit e67be4b

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.github/workflows/test.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
pull_request:
88
branches:
99
- '**'
10-
workflow_dispatch:
10+
workflow_dispatch:
1111
schedule:
1212
- cron: '0 0 * * *'
1313

@@ -30,7 +30,7 @@ jobs:
3030
config-env-vars: "DEFANG_GH_ACTION_TEST_MESSAGE"
3131
cwd: "./test"
3232
compose-files: "compose.yaml compose.prod.yaml"
33-
behavior: "staging"
33+
mode: "staging"
3434
env:
3535
DEFANG_GH_ACTION_TEST_MESSAGE: ${{ secrets.MESSAGE }}
3636
DEFANG_INTERNAL_TEST: dfng-test
@@ -43,7 +43,7 @@ jobs:
4343
config-env-vars: ""
4444
cwd: "./test"
4545
compose-files: ""
46-
behavior: ""
46+
mode: ""
4747
env:
4848
DEFANG_INTERNAL_TEST: dfng-test
4949

action.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ inputs:
2222
description: "The compose files to deploy. Format 'file1 file2 file3'"
2323
required: false
2424
default: ""
25-
behavior:
26-
description: "The behavior of the deployment. Options: 'development', 'staging', 'production'"
25+
mode:
26+
description: "The deployment mode. Options: 'development', 'staging', 'production'"
2727
required: false
28-
default: "development"
28+
default: ""
2929

3030
runs:
3131
using: "composite"
@@ -69,12 +69,12 @@ runs:
6969
params+=("-f")
7070
params+=("$filename")
7171
done
72-
if [[ -n "${{ inputs['behavior'] }}" ]]; then
73-
params+=("--behavior=${{ inputs['behavior'] }}")
72+
if [[ -n "${{ inputs['mode'] }}" ]]; then
73+
params+=("--mode=${{ inputs['mode'] }}")
7474
fi
7575
7676
if [[ "${DEFANG_INTERNAL_TEST}" == "dfng-test" ]]; then
77-
# `defang compose up --dry-run` is used for testing as --behavior flag is only available to the "compose up" command
77+
# `defang compose up --dry-run` is used for testing as --mode flag is only available to the "compose up" command
7878
echo defang compose "${params[@]}" up --dry-run
7979
defang compose "${params[@]}" up --dry-run
8080
else

0 commit comments

Comments
 (0)