Skip to content

Commit

Permalink
Fix winlibs inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Feb 14, 2025
1 parent b7d5d36 commit 7f7e55d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/winlibs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ on:
php_versions:
description: 'PHP Versions'
required: true
vs_version:
description: 'VS Versions'
required: true
vs_version_targets:
description: 'VS Version Targets'
required: true
Expand Down
5 changes: 2 additions & 3 deletions src/Http/Controllers/WinlibsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ protected function validate(array $data): bool
'library' => 'required|string',
'ref' => 'required|string',
'workflow_run_id' => 'required|string',
'php_versions' => 'required|string|regex:/^\d+\.\d+$}|^master$/',
'vs_version' => 'required|string|regex:/^(v[c|s]\d{2})(,v[c|s]\d{2})*$/',
'vs_version_targets' => 'required|string|regex:/^v[c|s]\d{2}$/',
'php_versions' => 'required|string|regex:/^(?:\d+\.\d+|master)(?:,\s*(?:\d+\.\d+|master))*$/',
'vs_version_targets' => 'required|string|regex:/^(v[c|s]\d{2})(,v[c|s]\d{2})*$/',
'stability' => 'required|string|regex:/^(stable|staging)(,(stable|staging))?$/',
'token' => 'required|string',
]);
Expand Down

0 comments on commit 7f7e55d

Please sign in to comment.