diff --git a/dist/main.js b/dist/main.js index c6cc7d2..d18ce21 100644 --- a/dist/main.js +++ b/dist/main.js @@ -82803,7 +82803,7 @@ var getOptions = () => { ), micromambaVersion: parseOrUndefined( "micromamba-version", - unionType([literalType("latest"), stringType().regex(/^\d+\.\d+\.\d+-\d+$/)]), + unionType([literalType("latest"), stringType().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", stringType().url()), diff --git a/dist/post.js b/dist/post.js index 9eaf0b6..f59cb0a 100644 --- a/dist/post.js +++ b/dist/post.js @@ -81846,7 +81846,7 @@ var getOptions = () => { ), micromambaVersion: parseOrUndefined( "micromamba-version", - unionType([literalType("latest"), stringType().regex(/^\d+\.\d+\.\d+-\d+$/)]), + unionType([literalType("latest"), stringType().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", stringType().url()), diff --git a/package.json b/package.json index da3c581..8d9b145 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "setup-micromamba", - "version": "2.0.2", + "version": "2.0.3", "private": true, "description": "Action to setup micromamba", "scripts": { diff --git a/src/options.ts b/src/options.ts index df08a1b..8021eba 100644 --- a/src/options.ts +++ b/src/options.ts @@ -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()),