Skip to content

Commit

Permalink
Add the Ability to Inject Environment Variables
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Schmiedmayer <[email protected]>
  • Loading branch information
PSchmiedmayer authored Sep 6, 2024
1 parent f15cf4c commit 4c9650f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/firebase-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ on:
You can lean more about how to generate the JSON at https://cloud.google.com/iam/docs/service-accounts-create.
The service account must have the minimally required permissions documented at https://firebase.google.com/docs/projects/iam/permissions.
required: true
secrets:

Check failure on line 52 in .github/workflows/firebase-deploy.yml

View workflow job for this annotation

GitHub Actions / YAML Lint Check

52:18 syntax error: mapping values are not allowed here (syntax)
ENV_FILE:
description: |
.env file that is injected in the build context before doing the firebase deployment.
required: false

jobs:
deployfirebase:
Expand All @@ -75,6 +80,10 @@ jobs:
java-version: '17'
- name: Install Firebase CLI Tools
run: npm install -g firebase-tools
- name: Load All Environment Variables
if: ${{ inputs.customcommand != '' }}
run: |
export $(${{ secrets.ENV_FILE }} | xargs)
- name: Run custom command
if: ${{ inputs.customcommand != '' }}
run: ${{ inputs.customcommand }}
Expand Down

0 comments on commit 4c9650f

Please sign in to comment.