Skip to content

Commit

Permalink
Improve environment-name search regex (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelzw authored Jun 9, 2023
1 parent cc9a6fb commit 724b32f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/index.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": "1.4.1",
"version": "1.4.2",
"private": true,
"description": "Action to setup micromamba",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const determineEnvironmentName = (environmentName?: string, environmentFi
throw new Error()
}
return fs.readFile(environmentFile, 'utf8').then((fileContents) => {
const environmentName = fileContents.toString().match(/name:\s*(.*)/)?.[1]
const environmentName = fileContents.toString().match(/^name:\s*(.*)/)?.[1]
if (!environmentName) {
const errorMessage = `Could not determine environment name from file ${environmentFile}`
core.error(errorMessage)
Expand Down

0 comments on commit 724b32f

Please sign in to comment.