Skip to content

Commit fc72849

Browse files
authored
Fix Github Action Failure from Missing Secrets (#603)
* add json default * add env to github actions * trying to add secrets to workflow
1 parent 0ae9e27 commit fc72849

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/node-build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ jobs:
3030
node-version: ${{ matrix.node-version }}
3131
- run: npm install
3232
- run: npm run build
33+
env:
34+
EVENTS_SPREADSHEET_ID: ${{ secrets.EVENTS_SPREADSHEET_ID }}
35+
SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }}
3336
- run: npm test
3437
env:
3538
CI: true

scripts/event-generator-sheets.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { getCssStringFromCommittee, generateSingleEvent } from './lib.mjs';
77
// .env config
88
dotenv.config();
99
const SPREADSHEET_ID = process.env.EVENTS_SPREADSHEET_ID;
10-
const SERVICE_ACCOUNT = process.env.SERVICE_ACCOUNT ?? '';
10+
const SERVICE_ACCOUNT = process.env.SERVICE_ACCOUNT ?? '{}';
1111

1212
// Week one MONDAY of the quarter (y, m (base 0), d)
1313
const FIRST_DAY_OF_QUARTER = new Date(2023, 0, 9);

0 commit comments

Comments
 (0)