mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Trigger for pushes to InvokeAI's main branch
This commit is contained in:
parent
3c79476785
commit
e225cf0613
32
.github/workflows/change-monitor.yml
vendored
Normal file
32
.github/workflows/change-monitor.yml
vendored
Normal file
@ -0,0 +1,32 @@
|
||||
name: Trigger Target Workflow
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types:
|
||||
- closed
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
trigger:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Trigger Workflow in Another Repository
|
||||
run: |
|
||||
# Set the required variables
|
||||
repo_owner="invoke-ai"
|
||||
repo_name="InvokeAI"
|
||||
event_type="invokeai-pr-merge"
|
||||
service=${{ github.event.inputs.target_service }}"
|
||||
version="${{ github.event.inputs.target_version }}"
|
||||
|
||||
curl -L \
|
||||
-X POST \
|
||||
-H "Accept: application/vnd.github+json" \
|
||||
-H "Authorization: Bearer ${{ secrets.PAT }}" \
|
||||
-H "X-GitHub-Api-Version: 2022-11-28" \
|
||||
https://api.github.com/repos/$repo_owner/$repo_name/dispatches \
|
||||
-d "{\"event_type\": \"$event_type\", \"client_payload\": {\"service\": \"$service\", \"version\": \"$version\", \"unit\": false, \"integration\": true}}"
|
Loading…
Reference in New Issue
Block a user