Skip to content

Commit

Permalink
Fixed regex for matching versions (#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohanMabille authored Dec 10, 2024
1 parent c8d39fb commit 068f1ab
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/post.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "setup-micromamba",
"version": "2.0.2",
"version": "2.0.3",
"private": true,
"description": "Action to setup micromamba",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ export const getOptions = () => {
),
micromambaVersion: parseOrUndefined(
'micromamba-version',
z.union([z.literal('latest'), z.string().regex(/^\d+\.\d+\.\d+-\d+$/)]),
z.union([z.literal('latest'), z.string().regex(/^\d+\.\d+\.\d+(?:\.?(?:rc|alpha|beta|dev)\d+)?-\d+$/)]),
'micromamba-version must be either `latest` or a version matching `1.2.3-0`.'
),
micromambaUrl: parseOrUndefined('micromamba-url', z.string().url()),
Expand Down

0 comments on commit 068f1ab

Please sign in to comment.