PR status 3951 - f848ebb8f4ac7506a0285f5f1d8f3f86715117fc - nvfuser-ci/jit_python_distributed_tests_20_A100 #445
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 }}\" \ | |
}" |