Skip to content

Commit 6a26e91

Browse files
committed
report errors in CI trigger workflow
Signed-off-by: Tyler Burt <[email protected]>
1 parent 5236bb9 commit 6a26e91

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/blossom-ci.yml

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

0 commit comments

Comments
 (0)