Skip to content

Commit ff09008

Browse files
committed
fix: workspace and scripts are directories, not files
1 parent dbd7923 commit ff09008

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ runs:
2727
steps:
2828
- name: "Validate CustoPiZer action inputs"
2929
run: |
30-
[ -f "${{ inputs.workspace }}" ] || (echo "Validation error: inputs.workspace does not exist!" && exit -1)
31-
[ -f "${{ inputs.scripts }}" ] || (echo "Validation error: inputs.scripts does not exist!" && exit -1)
32-
[ -z "${{ inputs.config }}" ] || [ -f "${{ inputs.config }}" ] || (echo "Validation error: inputs.config does not exist!" && exit -1)
30+
[ -d "${{ inputs.workspace }}" ] || (echo "Validation error: inputs.workspace does not exist or is not a directory!" && exit -1)
31+
[ -d "${{ inputs.scripts }}" ] || (echo "Validation error: inputs.scripts does not exist or is not a directory!" && exit -1)
32+
[ -z "${{ inputs.config }}" ] || [ -f "${{ inputs.config }}" ] || (echo "Validation error: inputs.config does not exist or is not a file!" && exit -1)
3333
[ -z "${{ inputs.environment }}" ] || $(echo '${{ inputs.environment }}' | jq) || (echo "Validation error: inputs.environment does not contain valid json!" && exit -1)
3434
[ -z "${{ inputs.custopizer }}" ] || [[ "${{ inputs.custopizer }}" ~= ^[a-zA-Z0-9_][a-zA-Z0-9_.-]{0,127}$ || "${{ inputs.custopizer }}" =~ sha256:[a-f0-9]{64}$ ]] || (echo "Validation error: inputs.custopizer does not contain a valid version!" && exit -1)
3535
shell: bash

0 commit comments

Comments
 (0)