Skip to content

Commit

Permalink
Update check-pr.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kdivya153 authored Oct 9, 2024
1 parent e8658aa commit f1f43af
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions .github/workflows/check-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,19 @@ jobs:
run: npm ci
- name: Run validation and tests
run: npm pack
trigger_repo_b_workflow:
name: Trigger Firebolt API Workflow
runs-on: ubuntu-latest
steps:
- name: Trigger MFOS Workflow
uses: benc-uk/workflow-dispatch@v1
with:
workflow: 'MFOS standalone sanity report - CORE,MANAGE,DISCOVERY' # Workflow in Repo B
token: ${{ secrets.GITHUB_TOKEN }}
repo: rdkcentral/firebolt-apis
inputs:
OPENRPC_PR_BRANCH:'${{ github.event.pull_request.head.ref }}'


- name: Trigger Workflow in Another Repository
run:
# Set the required variables
repo_owner=" rdkcentral"
repo_name="firebolt-apis"
event_type="trigger-workflow"
OPENRPC_PR_BRANCH="${{ github.event.pull_request.head.ref }}"

curl -X POST https://api.github.com/repos/$repo_owner/$repo_name/dispatches \
-H 'Accept:application/vnd.github.everest-preview+json' \
-u "username:${{ secrets.SEMANTIC_RELEASE_BOT_PAT }}" \
-d "{\"event_type\":\"$event_type\", \"client_payload\":{\"OPENRPC_PR_BRANCH\":\"$OPENRPC_PR_BRANCH\"}}"



0 comments on commit f1f43af

Please sign in to comment.