File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -28,13 +28,17 @@ jobs:
28
28
29
29
- name : Validate inputs
30
30
run : |
31
- if ! date -d "${{ github.event.inputs.target_date }}" "+%Y-%m-%dT%H:%M:%SZ" >/dev/null 2>&1; then
32
- echo "❌ Invalid date"
33
- exit 1
31
+ if [ -n "${{ github.event.inputs.target_date }}" ]; then
32
+ if ! date -d "${{ github.event.inputs.target_date }}" "+%Y-%m-%dT%H:%M:%SZ" >/dev/null 2>&1; then
33
+ echo "❌ Invalid date"
34
+ exit 1
35
+ fi
36
+ echo "✅ Valid date"
37
+ else
38
+ echo "ℹ️ No date provided, will fallback to last friday"
34
39
fi
35
- echo "✅ Valid date"
36
40
37
- if [[ "github.event.inputs.release-version" =~ ^[0-9]+\.[0-9]+$ ]]; then
41
+ if [[ "${{ github.event.inputs.release-version }} " =~ ^[0-9]+\.[0-9]+$ ]]; then
38
42
echo "✅ Valid version"
39
43
else
40
44
echo "❌ Invalid version"
You can’t perform that action at this time.
0 commit comments