We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e58d5b commit 3fb0cc2Copy full SHA for 3fb0cc2
1 file changed
.github/workflows/deploy-functions.yml
@@ -31,6 +31,18 @@ jobs:
31
- name: Install Functions Dependencies
32
run: npm --prefix functions ci
33
34
+ - name: Validate Required Secrets
35
+ run: |
36
+ if [ -z "${{ secrets.FIREBASE_TOKEN }}" ]; then
37
+ echo "::error::Missing required GitHub secret: FIREBASE_TOKEN"
38
+ exit 1
39
+ fi
40
+
41
+ if [ -z "${{ secrets.REACT_APP_OPENAI_API_KEY }}" ]; then
42
+ echo "::error::Missing required GitHub secret: REACT_APP_OPENAI_API_KEY"
43
44
45
46
- name: Sync OPENAI secret to Firebase
47
run: |
48
echo "${{ secrets.REACT_APP_OPENAI_API_KEY }}" | firebase functions:secrets:set OPENAI_API_KEY \
0 commit comments