Send commit webhook to build channel

This commit is contained in:
Willy-JL
2023-07-19 20:47:20 +01:00
parent 103d0c5c8b
commit d166a6f9d0
2 changed files with 3 additions and 1 deletions

View File

@@ -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(

View File

@@ -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