-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: slack notification on add feed form (#765)
* slack notification on add feed form * env var fix * update gtihub actions * slack webhook logging
- Loading branch information
1 parent
0487f9c
commit 613f8b8
Showing
8 changed files
with
123 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,10 @@ on: | |
description: The google sheet id for the feed submit form | ||
type: string | ||
required: false | ||
OP_SLACK_WEBHOOK_URL: | ||
description: 1Password Slack webhook URL secret reference for add feed channel | ||
type: string | ||
required: false | ||
outputs: | ||
hosting_url: | ||
description: "The URL of the deployed web app" | ||
|
@@ -137,6 +141,14 @@ jobs: | |
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: 1Password - Load Secrets | ||
uses: 1Password/[email protected] | ||
with: | ||
export-env: true | ||
env: | ||
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }} | ||
SLACK_WEBHOOK_URL: ${{inputs.OP_SLACK_WEBHOOK_URL}} | ||
|
||
- name: Authenticate to Google Cloud DEV | ||
if: ${{ inputs.FIREBASE_PROJECT == 'dev' }} | ||
uses: google-github-actions/auth@v2 | ||
|
@@ -240,7 +252,9 @@ jobs: | |
- name: Set Firebase Feed Form Environment | ||
working-directory: functions/packages/feed-form | ||
run: echo "FEED_SUBMIT_GOOGLE_SHEET_ID=${{ inputs.FEED_SUBMIT_GOOGLE_SHEET_ID }}" > .env | ||
run: | | ||
echo "FEED_SUBMIT_GOOGLE_SHEET_ID=${{ inputs.FEED_SUBMIT_GOOGLE_SHEET_ID }}" > .env | ||
echo "SLACK_WEBHOOK_URL=${{ env.SLACK_WEBHOOK_URL }}" >> .env | ||
- name: Deploy Firebase Functions | ||
working-directory: functions | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters