Skip to content

Commit

Permalink
update issue instead of creating a new one
Browse files Browse the repository at this point in the history
  • Loading branch information
manbearian committed Nov 2, 2023
1 parent 21818ef commit 619862a
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/nightly-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,20 @@ jobs:
- name: Report Failure
if: ${{ failure() }}
run: |
gh --repo ${{ github.repository }} issue create \
--title "Rolling Build Failure $(date +'%Y-%m-%d')" \
--body "cc @microsoft/aifx-compilers
The rolling build has failed. See: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
issues=$(gh --repo microsoft/triton-shared issue list --label nightly-build-failure --state open)
build_url="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
notificiation_list="@microsoft/aifx-compilers"
if [ -z "$issues" ]; then
gh --repo ${{ github.repository }} issue create \
--title "Nightly Build Failure $(date +'%Y-%m-%d')" \
--label "nightly-build-failure" \
--body "cc $notificiation_list
The nightly build has failed. See: $build_url"
else
issue_number=$(echo "$issues" | head -n 1 | awk '{print $1}')
gh --repo microsoft/triton-shared issue comment $issue_number \
--body "cc $notificiation_list
The nightly build has failed again. See: $build_url"
fi
env:
GH_TOKEN: ${{ github.token }}

0 comments on commit 619862a

Please sign in to comment.