Skip to content

Commit

Permalink
ci: Test creating an issue on nightly failure (#3329)
Browse files Browse the repository at this point in the history
  • Loading branch information
max-sixty authored Aug 12, 2023
1 parent b54900e commit 50a995d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
6 changes: 6 additions & 0 deletions .github/nightly-failure.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Nightly tests failed
labels: github_actions
---

Nightly tests [failed on {{ date | date('YYYY-MM-DD') }}]({{ env.LINK }})
12 changes: 0 additions & 12 deletions .github/nightly-failure.yaml

This file was deleted.

8 changes: 7 additions & 1 deletion .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -480,13 +480,19 @@ jobs:
# don't want to trigger just on a `pr-nightly` label
always() && github.event.schedule && needs.rules.outputs.nightly &&
contains(needs.*.result, 'failure')
permissions:
contents: read
issues: write
steps:
- name: 📂 Checkout code
uses: actions/checkout@v3
- uses: JasonEtco/create-an-issue@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LINK:
${{ github.server_url }}/${{ github.repository }}/actions/runs/${{
github.run_id }}
with:
filename: .github/nightly-failure.yaml
filename: .github/nightly-failure.md
update_existing: true
search_existing: open

0 comments on commit 50a995d

Please sign in to comment.