Skip to content

Commit 57911de

Browse files
committed
fix: regex match is =~, not ~=
1 parent 1229b15 commit 57911de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ runs:
3131
[ -d "${{ inputs.scripts }}" ] || (echo "Validation error: inputs.scripts does not exist or is not a directory!" && exit -1)
3232
[ -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)
34-
[ -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)
34+
[ -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
3636

3737
- name: "Run CustoPiZer"

0 commit comments

Comments
 (0)