Skip to content

Commit

Permalink
Revert "typo in yml file"
Browse files Browse the repository at this point in the history
This reverts commit 5d1b69f.
  • Loading branch information
phyleria committed Nov 28, 2024
1 parent d9ffd4d commit 8ead1a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/scripts/badge-automation.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ async function sendEmail(email, message, badgeInfo) {
async function getUserEmail(username) {
try {
const { data: user } = await octokit.users.getByUsername({ username });
return user.email || null;
return user.email;
} catch (error) {
console.error(`Error fetching email for ${username}:`, error.message);
console.error(`Error fetching email for ${username}:`, error);
return null;
}
}
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/badge-automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ jobs:
node-version: "16.x"

- name: Install dependencies
run: npm install @octokit/rest nodemailer
run: npm install @octokdit/rest nodemailer

- name: Run badge automation script
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
EMAIL_USER: ${{ secrets.EMAIL_USER }}
EMAIL_PASS: ${{ secrets.EMAIL_PASS }}
run: node .github/scripts/badge-automation.js
run: |
node .github/scripts/badge-automation.js

0 comments on commit 8ead1a4

Please sign in to comment.