mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
Cleanup workflows
This commit is contained in:
44
.github/workflows/webhook.yml
vendored
Normal file
44
.github/workflows/webhook.yml
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
name: 'Webhook'
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
types:
|
||||
- "opened"
|
||||
- "closed"
|
||||
- "reopened"
|
||||
release:
|
||||
types:
|
||||
- "published"
|
||||
workflow_run:
|
||||
workflows:
|
||||
- "Build"
|
||||
- "Hotfix"
|
||||
- "Lint"
|
||||
- "Release"
|
||||
- "SonarCloud"
|
||||
- "Submodules"
|
||||
- "Webhook"
|
||||
types:
|
||||
- "completed"
|
||||
issues:
|
||||
types:
|
||||
- "opened"
|
||||
- "closed"
|
||||
- "reopened"
|
||||
issue_comment:
|
||||
types:
|
||||
- "created"
|
||||
|
||||
jobs:
|
||||
webhook:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
- name: 'Checkout code'
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Send webhook
|
||||
env:
|
||||
DEV_WEBHOOK: "https://discord.com/api/webhooks/${{ secrets.DEV_WEBHOOK_ID }}/${{ secrets.DEV_WEBHOOK_TOKEN }}"
|
||||
run: python .github/workflow_data/webhook.py
|
||||
Reference in New Issue
Block a user