Skip to content

PR status 3951 - f848ebb8f4ac7506a0285f5f1d8f3f86715117fc - nvfuser-ci/jit_binary_tests_20_B100_1/3 #436

PR status 3951 - f848ebb8f4ac7506a0285f5f1d8f3f86715117fc - nvfuser-ci/jit_binary_tests_20_B100_1/3

PR status 3951 - f848ebb8f4ac7506a0285f5f1d8f3f86715117fc - nvfuser-ci/jit_binary_tests_20_B100_1/3 #436

# SPDX-FileCopyrightText: Copyright (c) 2023-present NVIDIA CORPORATION & AFFILIATES.
# All rights reserved.
# SPDX-License-Identifier: BSD-3-Clause
# see https://docs.github.com/en/rest/commits/statuses?apiVersion=2022-11-28#create-a-commit-status
name: Nvfuser-CI Logs v2
on:
workflow_dispatch:
inputs:
state:
description: 'job status'
required: true
descr:
description: 'description of the job'
required: true
commit_sha:
description: 'SHA of the commit that was tested.'
required: true
target_url:
description: 'target url'
required: true
context:
description: 'context'
required: true
pr_number:
description: 'pr number'
required: false
run-name: PR status ${{ inputs.pr_number || github.run_id }} - ${{ inputs.commit_sha }} - ${{ inputs.context }}
jobs:
status_update:
name: Update commit status
runs-on: ubuntu-latest
permissions:
statuses: write
steps:
- name: Set status
run: |
curl -L -X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/${{ github.repository }}/statuses/${{ inputs.commit_sha }} \
-d "{ \
\"state\":\"${{ inputs.state }}\", \
\"target_url\":\"${{ inputs.target_url }}\", \
\"description\":\"${{ inputs.descr }}\", \
\"context\":\"${{ inputs.context }}\" \
}"