Skip to content

Commit

Permalink
fix: rename token to get contributors
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioRibera committed Jul 18, 2024
1 parent 3da72f9 commit 698e067
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
npm i
- name: Build
env:
GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COLLABORATORS_API_TOKEN: ${{ secrets.COLLABORATORS_API_TOKEN }}
run: cargo make build
- name: Upload artifact
uses: actions/upload-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
npm i
- name: Build
env:
GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COLLABORATORS_API_TOKEN: ${{ secrets.COLLABORATORS_API_TOKEN }}
run: cargo make build

- name: Deploy
Expand Down
2 changes: 1 addition & 1 deletion src/pages/contributors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ pub async fn fetch_contributors() -> Vec<Contributor> {
headers.append("User-Agent", "RustLangES Automation Agent".parse().unwrap());
headers.append(
"Authorization",
format!("Bearer {}", env!("GITHUB_API_TOKEN"))
format!("Bearer {}", env!("COLLABORATORS_API_TOKEN"))
.parse()
.unwrap(),
);
Expand Down

0 comments on commit 698e067

Please sign in to comment.