From 5a18457c557f8d2b52b907bc1f2b43e7f33b08f8 Mon Sep 17 00:00:00 2001 From: Bhupesh Varshney Date: Sun, 7 Jan 2024 13:09:06 +0530 Subject: [PATCH] Create flair-usage-stats.yml --- .github/workflows/flair-usage-stats.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/flair-usage-stats.yml diff --git a/.github/workflows/flair-usage-stats.yml b/.github/workflows/flair-usage-stats.yml new file mode 100644 index 0000000..73c0428 --- /dev/null +++ b/.github/workflows/flair-usage-stats.yml @@ -0,0 +1,15 @@ +name: User Flair Usage Stats + +on: + workflow_dispatch: + +jobs: + send_discord_message: + runs-on: ubuntu-latest + + steps: + - name: Send Discord message + env: + WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }} # Add your Discord webhook URL in repository secrets + run: | + curl -X POST -H "Content-Type: application/json" -d '{"content":"Hello from GitHub Action!"}' $WEBHOOK_URL