Skip to content

Commit 9dcc2c2

Browse files
committed
use a bash array to pass options
1 parent 34f8515 commit 9dcc2c2

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

action.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ runs:
3434
FORCE_COLOR: 3
3535
POLICY_PATH: ${{ inputs.policy }}
3636
ENVIRONMENT_PATHS: ${{ inputs.environment-paths }}
37+
TODAY: ${{ inputs.today }}
3738
run: |
38-
env | grep -i -e "environment"
39-
env | grep -i -e "policy"
40-
python minimum_versions.py --policy="$POLICY_PATH" $ENVIRONMENT_PATHS
39+
if [[ "$TODAY" != "" ]]; then
40+
opts=(--today="$TODAY")
41+
else
42+
opts=()
43+
fi
44+
python minimum_versions.py "$opts" --policy="$POLICY_PATH" $ENVIRONMENT_PATHS

0 commit comments

Comments
 (0)