Skip to content

Commit

Permalink
Create script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
PepikVaio authored Jan 9, 2024
1 parent c1a8454 commit 4157b61
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/scripts/script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// scripts/script.js
var enteredCode = process.env.ENTERED_CODE;
var correctCode = process.env.MY_SECRET_CODE;

if (enteredCode === correctCode) {
console.log('Code is correct!');
} else {
console.error('Incorrect code!');
process.exit(1);
}

0 comments on commit 4157b61

Please sign in to comment.