Skip to content

Commit

Permalink
commenting
Browse files Browse the repository at this point in the history
  • Loading branch information
SubhedarV committed Feb 27, 2024
1 parent f94d28b commit 23c6040
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/call_mirror.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
name: call-repo-mirror-workflow
# name: call-repo-mirror-workflow

on:
pull_request_target:
types: [opened, edited, synchronize]
# on:
# pull_request_target:
# 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_ref": "${{ github.event.pull_request.head.ref }}", "repo": "${{ github.event.pull_request.head.repo.full_name }}" }}'
# 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_ref": "${{ github.event.pull_request.head.ref }}", "repo": "${{ github.event.pull_request.head.repo.full_name }}" }}'

0 comments on commit 23c6040

Please sign in to comment.