Skip to content

Commit 236f5c0

Browse files
committed
Add delpoyment step to update sponsors
1 parent 69ac5d0 commit 236f5c0

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/main.yml

+4
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ jobs:
4242
# yarn crowdin-upload
4343
# yarn crowdin-download
4444

45+
- name: Update sponsors list
46+
env:
47+
GITHUB_TOKEN: ${{ secrets.DEPLOY_GITHUB_TOKEN }}
48+
run: yarn fetch-sponsors
4549
- name: Publish to Github pages
4650
env:
4751
GITHUB_TOKEN: ${{ secrets.DEPLOY_GITHUB_TOKEN }}

scripts/fetch-sponsors.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function organizationToSponsors(organization) {
4646
async function fetchSponsorsAsync() {
4747
let { organization } = await graphql(query, {
4848
headers: {
49-
authorization: `token ${process.env.REACT_NAV_GITHUB_TOKEN}`,
49+
authorization: `token ${process.env.REACT_NAV_GITHUB_TOKEN || process.env.GITHUB_TOKEN}`,
5050
},
5151
});
5252

0 commit comments

Comments
 (0)