Skip to content

Commit

Permalink
fix: Added a new job to trigger Firebolt api workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kdivya153 committed Oct 10, 2024
1 parent b43349b commit 129abb5
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/check-pr.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: Check Pull Request
on:
workflow_dispatch:
pull_request:
types:
- 'ready_for_review'
Expand All @@ -26,3 +25,13 @@ jobs:
run: npm ci
- name: Run validation and tests
run: npm pack

- name: Trigger workflow in another repository
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: rdkcentral/firebolt-apis
event-type: trigger-workflow
client-payload: '{"OPENRPC_PR_BRANCH": "${{ github.event.pull_request.head.ref }}"}'


19 changes: 19 additions & 0 deletions .github/workflows/slack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Capture Repo B Status
on:
workflow_run:
workflows: ["MFOS standalone sanity report - CORE,MANAGE,DISCOVERY"]
types:
- completed
jobs:
check_repo_b_status:
name: Firebolt API Workflow Status
runs-on: ubuntu-latest
steps:
- name: Check if the workflow Succeeded
run: |
if [[ "${{ github.event.workflow_run.conclusion }}" != "success" ]]; then
echo "SDK generation failed so failing this PR"
exit 1
else
echo "SDK generated successfully."
fi

0 comments on commit 129abb5

Please sign in to comment.