Skip to content

Commit

Permalink
fixed workflow environment
Browse files Browse the repository at this point in the history
  • Loading branch information
Veeti committed Jul 26, 2024
1 parent 32f8992 commit 0c2566b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ on:
env:
COMMIT_MESSAGES: ${{ toJson(github.event.commits.*.message) }}
COMMIT: ${{ toJson(github.event.commits)[0] }}
SECRET: secrets.SECRET
MONGODB_URI: secrets.MONGODB_URI
TEST_MONGODB_URI: secrets.TEST_MONGODB_URI
DEV_MONGODB_URI: secrets.DEV_MONGODB_URI
SECRET: ${{ secrets.SECRET }}
MONGODB_URI: ${{ secrets.MONGODB_URI }}
TEST_MONGODB_URI: ${{ secrets.TEST_MONGODB_URI }}
DEV_MONGODB_URI: ${{ secrets.DEV_MONGODB_URI }}

jobs:
simple_deployment_pipeline:
Expand Down
4 changes: 2 additions & 2 deletions utils/logger.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
const info = (...params) => {
if (process.env.NODE_ENV !== 'test') {
if (process.env.NODE_ENV !== 'testing') {
console.log(...params);
}
};

const error = (...params) => {
if (process.env.NODE_ENV !== 'test') {
if (process.env.NODE_ENV !== 'testing') {
console.error(...params);
}
};
Expand Down

0 comments on commit 0c2566b

Please sign in to comment.