Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add webhook cron #12537

Draft
wants to merge 1 commit into
base: support
Choose a base branch
from

Conversation

DSchau
Copy link
Collaborator

@DSchau DSchau commented Dec 8, 2023

Description

This adds a webhook invocation to this project to trigger a Postman Flow that then shares a useful summary to the API Client team.

Detail

Every Thursday at 12AM PST, 130PM IST Friday, this action will trigger a webhook and cross-post a Slack summary which looks like:

Screenshot 2023-12-08 at 11 17 29

Next Steps

  • This PR is blocked until I can get the API_CLIENT_URL secret added, which is the URL to the Postman Flows webhook

@kelvinsteel1997
Copy link

From 4c49297 Mon Sep 17 00:00:00 2001
From: Dustin Schau dustinschau@gmail.com
Date: Fri, 8 Dec 2023 11:15:18 -0800
Subject: [PATCH] chore: add webhook cron


.github/workflows/webhooks.yml | 13 +++++++++++++
1 file changed, 13 insertions(+)
create mode 100644 .github/workflows/webhooks.yml

diff --git a/.github/workflows/webhooks.yml b/.github/workflows/webhooks.yml
new file mode 100644
index 00000000..0dfb5e83
--- /dev/null
+++ b/.github/workflows/webhooks.yml
@@ -0,0 +1,13 @@
+name: API Client Summary
+on:

  • schedule:
  • Runs at 08:00 UTC (12:00 AM PST) every Thursday

    • cron: '0 8 * * 4'
      +jobs:
  • webhook-invocation:
  • runs-on: ubuntu-latest
  • steps:
    • name: Invoke Webhook
  •  run: |
    
  •    curl -X POST -H "Content-Type: application/json" ${{ secrets.API_CLIENT_URL }}
    

@kelvinsteel1997
Copy link

diff --git a/.github/workflows/webhooks.yml b/.github/workflows/webhooks.yml
new file mode 100644
index 00000000..0dfb5e83
--- /dev/null
+++ b/.github/workflows/webhooks.yml
@@ -0,0 +1,13 @@
+name: API Client Summary
+on:

  • schedule:
  • Runs at 08:00 UTC (12:00 AM PST) every Thursday

    • cron: '0 8 * * 4'
      +jobs:
  • webhook-invocation:
  • runs-on: ubuntu-latest
  • steps:
    • name: Invoke Webhook
  •  run: |
    
  •    curl -X POST -H "Content-Type: application/json" ${{ secrets.API_CLIENT_URL }}
    

@PurveshItaliya
Copy link

lkhioj

@PurveshItaliya
Copy link

jhjhjh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants