File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -75,15 +75,15 @@ jobs:
75
75
76
76
- name : Validate timeout-minutes
77
77
run : |
78
- if [[ ! "${{ inputs.timeout-minutes }}" =~ ^[0-9]+$ ]] || [[ "${{ inputs.timeout-minutes }}" \ < 1 ]] || [[ "${{ inputs.timeout-minutes }}" \ > 360 ]] ; then
78
+ if [[ ! "${{ inputs.timeout-minutes }}" =~ ^[0-9]+$ ]] || (( "${{ inputs.timeout-minutes }}" < 1 )) || (( "${{ inputs.timeout-minutes }}" > 360 )) ; then
79
79
echo "Error: Invalid timeout-minutes value '${{ inputs.timeout-minutes }}'"
80
80
echo "Value must be a number between 1 and 360 minutes"
81
81
exit 1
82
82
fi
83
83
84
84
- name : Validate retention-days
85
85
run : |
86
- if [[ ! "${{ inputs.retention-days }}" =~ ^[0-9]+$ ]] || [[ "${{ inputs.retention-days }}" \ < 1 ]] || [[ "${{ inputs.retention-days }}" \ > 90 ]] ; then
86
+ if [[ ! "${{ inputs.retention-days }}" =~ ^[0-9]+$ ]] || (( "${{ inputs.retention-days }}" < 1 )) || (( "${{ inputs.retention-days }}" > 90 )) ; then
87
87
echo "Error: Invalid retention-days value '${{ inputs.retention-days }}'"
88
88
echo "Value must be a number between 1 and 90 days"
89
89
exit 1
You can’t perform that action at this time.
0 commit comments