mirror of
https://github.com/reworkd/AgentGPT.git
synced 2026-03-29 02:37:10 +00:00
23 lines
563 B
YAML
23 lines
563 B
YAML
name: Invoke Deployment Webhooks
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches: [ "main" ]
|
|
|
|
jobs:
|
|
invoke:
|
|
name: Invoke Webhooks
|
|
runs-on: ubuntu-latest
|
|
environment: production
|
|
if: github.repository == 'reworkd/AgentGPT'
|
|
steps:
|
|
- name: Trigger Webhooks
|
|
run: |
|
|
curl -L \
|
|
-X POST \
|
|
-H "Accept: application/vnd.github+json" \
|
|
-H ${{ secrets.WEBHOOK_AUTHORIZATION }} \
|
|
-H "X-GitHub-Api-Version: 2022-11-28" \
|
|
-d '{"ref":"main"}' \
|
|
${{ secrets.DEPLOYMENT_WEBHOOK_URL }}
|