-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trigger process notifications mutation from Github workflow (#3177)
* Add workflows to process notifications post deploy * Delete old netlify plugin * Use var instead
- Loading branch information
1 parent
d45406b
commit 48b7bd5
Showing
7 changed files
with
39 additions
and
100 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Process Notifications | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
environment: | ||
description: The Github environment to load secrets from | ||
type: string | ||
required: true | ||
|
||
jobs: | ||
execute-mutation: | ||
runs-on: ubuntu-latest | ||
environment: ${{ inputs.environment }} | ||
|
||
steps: | ||
- name: Call GraphQL API | ||
env: | ||
SITE_URL: ${{ vars.SITE_URL }} | ||
PROCESS_NOTIFICATIONS_SECRET: ${{ secrets.PROCESS_NOTIFICATIONS_SECRET }} | ||
run: | | ||
curl -X POST "$SITE_URL/api/graphql" \ | ||
-H "Content-Type: application/json" \ | ||
-H "PROCESS_NOTIFICATIONS_SECRET: $PROCESS_NOTIFICATIONS_SECRET" \ | ||
-d '{"query":"mutation { processNotifications }"}' |
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
72 changes: 0 additions & 72 deletions
72
site/gatsby-site/plugins/netlify-plugin-process-notifications/index.js
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
site/gatsby-site/plugins/netlify-plugin-process-notifications/manifest.yml
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
site/gatsby-site/plugins/netlify-plugin-process-notifications/package.json
This file was deleted.
Oops, something went wrong.