Skip to content

Commit

Permalink
Change second approver
Browse files Browse the repository at this point in the history
  • Loading branch information
rlho committed Aug 12, 2024
1 parent 4c54581 commit b86f3cd
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
40 changes: 40 additions & 0 deletions .github/deploy_development.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Deploy DEVELOPMENT to Google Apps Script

on:
push:
branches:
- main
- change_second_approver

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "18"

- name: Install dependencies
run: |
cd media_commons_booking_app
npm ci
- name: Set up clasp authentication
run: |
echo "$CLASP_CREDENTIALS" > ~/.clasprc.json
env:
CLASP_CREDENTIALS: ${{ secrets.CLASP_CREDENTIALS }}
- name: Install clasp
run: npm install -g @google/clasp
- name: Push to Google Apps Script
run: |
cd media_commons_booking_app
npm run deploy:dev
- name: Create new version and push
run: |
cd media_commons_booking_app
clasp deploy --deploymentId AKfycbxmQf1ZncntQwdIaGq372w5gbdiltLGmzo2xbV7efAbZQ7U7zWtMJBw0EQjnXZm4aYimw -d "DEVELOPMENT"
2 changes: 1 addition & 1 deletion media_commons_booking_app/src/policy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const SECOND_OLD_SAFETY_TRAINING_SHEET_GID = 293202487;
export const getSecondApproverEmail = (branchName: string) =>
branchName === 'development'
? '[email protected]'
: 'jg5626@nyu.edu'; // Jhanele
: 'ss12430@nyu.edu'; // Samantha

export const getApprovalCcEmail = (branchName: string) =>
branchName === 'development'
Expand Down

0 comments on commit b86f3cd

Please sign in to comment.