Skip to content

Commit

Permalink
Create wikichange.yml
Browse files Browse the repository at this point in the history
Attempt at creating a workflow action that sends a Discord message triggered by a webhook call.
  • Loading branch information
marcone committed Sep 14, 2024
1 parent 575448d commit 4f38c03
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/wikichange.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: wiki change webhook

on: [repository_dispatch]

jobs:
build:
env:
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
runs-on: ubuntu-latest
steps:
- name: wiki change handler
shell: bash
run: |
curl -H "Content-Type: application/json" -d '{"username": "'wiki'", "content": "'changed'"}' "https://discord.com/api/webhooks/$DISCORD_TOKEN"

0 comments on commit 4f38c03

Please sign in to comment.