mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
Send commit webhook to build channel
This commit is contained in:
1
.github/workflow_data/webhook.py
vendored
1
.github/workflow_data/webhook.py
vendored
@@ -16,6 +16,7 @@ if __name__ == "__main__":
|
||||
|
||||
match os.environ["GITHUB_EVENT_NAME"]:
|
||||
case "push":
|
||||
webhook = "BUILD_WEBHOOK"
|
||||
count = len(event["commits"])
|
||||
if count == 20:
|
||||
count = int(requests.get(
|
||||
|
||||
3
.github/workflows/webhook.yml
vendored
3
.github/workflows/webhook.yml
vendored
@@ -39,6 +39,7 @@ jobs:
|
||||
|
||||
- name: Send webhook
|
||||
env:
|
||||
DEV_WEBHOOK: "https://discord.com/api/webhooks/${{ secrets.DEV_WEBHOOK_ID }}/${{ secrets.DEV_WEBHOOK_TOKEN }}"
|
||||
BUILD_WEBHOOK: ${{ secrets.BUILD_WEBHOOK }}
|
||||
DEV_WEBHOOK: ${{ secrets.DEV_WEBHOOK }}
|
||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||
run: python .github/workflow_data/webhook.py
|
||||
|
||||
Reference in New Issue
Block a user