Skip to content

Commit

Permalink
feat: open an issue for nightly validation failures (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
c-dilks authored Feb 2, 2024
1 parent 1fa8744 commit 3410d4c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/nightly-issue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Nightly validation workflow failed on {{ date | date('dddd, MMMM Do, [at] HH:mm[Z]') }}
---
Workflow Run: {{ env.REPO_URL }}/actions/runs/{{ env.RUN_ID }}
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -526,3 +526,22 @@ jobs:
echo "" >> $GITHUB_STEP_SUMMARY
done
echo '```' >> $GITHUB_STEP_SUMMARY
issue_bot:
name: Issue bot
runs-on: ubuntu-latest
needs:
- final
permissions:
contents: read
issues: write
if: ${{ github.event_name == 'schedule' && ( cancelled() || failure() ) }}
steps:
- uses: actions/checkout@v4
- uses: JasonEtco/create-an-issue@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO_URL: ${{ github.event.repository.html_url }}
RUN_ID: ${{ github.run_id }}
with:
filename: .github/nightly-issue.md

0 comments on commit 3410d4c

Please sign in to comment.