Skip to content

Commit

Permalink
Added skeleton trigger workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsmida committed May 17, 2024
1 parent 61e5540 commit 04f22b1
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/trigger-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Trigger Target Workflow

on:
push:

jobs:
trigger:
runs-on: ubuntu-latest

steps:
- name: Trigger Workflow in Another Repository
run: |
# Set the required variables
repo_owner="mattsmida"
repo_name="ti.net"
event_type="trigger-workflow"
service="the-push-service"
version="v0.0.3"
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}}"

0 comments on commit 04f22b1

Please sign in to comment.