Skip to content

Commit 12c8bc3

Browse files
committed
expose the policy in the action
1 parent 61d9c34 commit 12c8bc3

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

action.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ name: "minimum-dependency-versions"
22
description: >-
33
Check that the minimum dependency versions follow `xarray`'s policy.
44
inputs:
5+
policy:
6+
description: >-
7+
The policy to follow
8+
required: True
9+
type: string
510
environment-paths:
611
description: >-
712
The paths to the environment files
@@ -22,6 +27,6 @@ runs:
2227
env:
2328
COLUMNS: 120
2429
FORCE_COLOR: 3
25-
INPUT: ${{ inputs.environment-paths }}
30+
POLICY_PATH: ${{ inputs.policy-path }}
2631
run: |
27-
python ${{ github.action_path }}/minimum_versions.py $(echo $INPUT)
32+
python minimum_versions.py --policy="$POLICY_PATH" ${{ join(fromJSON(inputs.environment-paths), ' ') }}

0 commit comments

Comments
 (0)