mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-03-29 12:59:53 +00:00
37 lines
728 B
YAML
37 lines
728 B
YAML
name: "Webhook"
|
|
|
|
on:
|
|
push:
|
|
workflow_run:
|
|
workflows:
|
|
- "Build"
|
|
- "Lint"
|
|
- "Release"
|
|
types:
|
|
- "completed"
|
|
issues:
|
|
types:
|
|
- "opened"
|
|
- "closed"
|
|
- "reopened"
|
|
issue_comment:
|
|
types:
|
|
- "created"
|
|
|
|
jobs:
|
|
webhook:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: "Checkout code"
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 1
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
|
|
- name: Send webhook
|
|
env:
|
|
BUILD_WEBHOOK: ${{ secrets.BUILD_WEBHOOK }}
|
|
DEV_WEBHOOK: ${{ secrets.DEV_WEBHOOK }}
|
|
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
|
run: python .github/workflow_data/webhook.py
|