Skip to content

Commit

Permalink
amend regex comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Zidious committed Dec 18, 2023
1 parent a2cba71 commit 4422c86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/actions/get-new-env-vars-v1/src/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ export default async function run(core: Core) {
throw new Error(`Error getting env vars: \n${envVarsError}`)
}

// Only get env vars that are added (i.e. prefixed with `+`)
// and not commented out (i.e. prefixed with `+#`)
const regex = /^\+[^+#].*/
// Only grab lines that start with a `+` and ignore any lines that
// are commented out with a `#` at the beginning.
const newEnvVars = envVars
.split('\n')
.filter(e => e.match(regex))
Expand Down

0 comments on commit 4422c86

Please sign in to comment.