Skip to content

Commit

Permalink
use special token
Browse files Browse the repository at this point in the history
  • Loading branch information
eramdam committed Jun 19, 2024
1 parent ec40546 commit 54ee576
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
GITHUB_TOKEN=
GH_TOKEN=
RAINDROP_TOKEN=
RAINDROP_COLLECTION_ID=
RAINDROP_COLLECTION_ID=
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

- name: run script
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
RAINDROP_TOKEN: ${{ secrets.RAINDROP_TOKEN }}
RAINDROP_COLLECTION_ID: ${{ secrets.RAINDROP_COLLECTION_ID }}
run: node src/script.js
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const raindropAxios = axios.create({
});

export const main = async () => {
const octokit = new Octokit({ auth: process.env.GITHUB_TOKEN });
const octokit = new Octokit({ auth: process.env.GH_TOKEN });

console.log(new Date(), "Fetching all your starred repos...");
const stars = await octokit.paginate(
Expand Down

0 comments on commit 54ee576

Please sign in to comment.