Skip to content

Commit

Permalink
fix: add node-fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
rfoel committed May 11, 2023
1 parent 225e294 commit 8ffab35
Show file tree
Hide file tree
Showing 5 changed files with 81 additions and 388 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/streak-keeper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,8 @@ jobs:
with:
node-version: 18

- run: npm install

- run: npm run build

- uses: ./
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Duolingo
name: Streak Keeper

runs:
using: 'node16'
Expand Down
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import fetch from 'node-fetch'

const headers = {
'Content-Type': 'application/json',
Authorization: `Bearer ${process.env.DUOLINGO_JWT}`,
Expand Down
Loading

0 comments on commit 8ffab35

Please sign in to comment.