Skip to content

Commit

Permalink
Update CI workflow to take cookie as input
Browse files Browse the repository at this point in the history
  • Loading branch information
MNThomson committed Jun 6, 2024
1 parent 5b89f0c commit 1825530
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/populate-courses.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
term:
description: Academic term to execute descript with. ie 202009, 202001
required: true
cookie:
description: JSESSIONID Cookie for the '/StudentRegistrationSsb' Path
required: true
jobs:
lint:
name: Lint
Expand Down Expand Up @@ -41,6 +44,7 @@ jobs:
run:
working-directory: ./functions
steps:
- run: echo "::add-mask::${{ github.event.inputs.cookie }}"
- uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
Expand All @@ -61,4 +65,4 @@ jobs:
service_account_key: ${{ secrets.FIREBASE_SERVICE_ACCOUNT }}
export_default_credentials: true
- name: Execute Script
run: npm run db:populate ${{ github.event.inputs.term }}
run: npm run db:populate "${{ github.event.inputs.term }}" "${{ github.event.inputs.cookie }}"

0 comments on commit 1825530

Please sign in to comment.