Skip to content

Commit

Permalink
PR to trigger enterprise XRT pipeline using github actions (Xilinx#7794)
Browse files Browse the repository at this point in the history
* creating a repo dispatch

* using Ubuntu as label

* Signing off for DCO

Signed-off-by: msubrama <[email protected]>

* Adding a new line

---------

Signed-off-by: msubrama <[email protected]>
  • Loading branch information
manikandan-xilinx authored Nov 15, 2023
1 parent 05b6a21 commit bc0b302
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/call_mirror.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: repo-dispatch-mirror

on:
workflow_dispatch:
pull_request:
types: [opened, edited, synchronize]

jobs:
run-repository-dispatch:
runs-on: Ubuntu
steps:
- name: Trigger Workflow
run: |
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.CI_DOMAIN_TOKEN }}" \
"https://${{ secrets.CI_DOMAIN_URL }}/api/v3/repos/${{ secrets.CI_DOMAIN_OWNER }}/${{ secrets.CI_DOMAIN_REPO }}/actions/workflows/${{ secrets.CI_DOMAIN_WORKFLOW }}/dispatches" \
-d '{"ref": "main", inputs: { branch_name: ${{ github.event.pull_request.ref }} }}'

0 comments on commit bc0b302

Please sign in to comment.