Skip to content

Commit e5cd1f9

Browse files
committed
report errors in CI trigger workflow
Signed-off-by: Tyler Burt <[email protected]>
1 parent 7ddc4d6 commit e5cd1f9

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/blossom-ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,24 @@ jobs:
9595
OPERATION: 'POST-PROCESSING'
9696
CI_SERVER: ${{ secrets.CI_SERVER }}
9797
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
98+
99+
Report-Status:
100+
name: Report Status
101+
runs-on: ubuntu-latest
102+
if: ${{ always() }}
103+
needs: [Authorization]
104+
steps:
105+
- name: Publish failure status
106+
uses: actions/github-script@v6
107+
if: ${{ needs.Authorization.status != 'success' }}
108+
with:
109+
script: |
110+
github.rest.repos.createCommitStatus({
111+
owner: context.repo.owner,
112+
repo: context.repo.repo,
113+
context: 'blossom-ci',
114+
sha: '${{ github.event.issue.pull_request.head.sha }}',
115+
target_url: 'https://github.com/NVIDIA/TensorRT-LLM/actions/runs/${{github.run_id}}',
116+
state: 'failure',
117+
description: 'CI testing could not start due to authorization failure',
118+
})

0 commit comments

Comments
 (0)