Open issue on failing import (#605)

This commit is contained in:
Naïm Favier 2023-02-07 16:32:04 +01:00 committed by GitHub
parent dff4ba7132
commit 727c84003e
Failed to generate hash of commit
2 changed files with 18 additions and 0 deletions

4
.github/failing-import-issue.md vendored Normal file
View file

@ -0,0 +1,4 @@
---
title: Failing import for nixpkgs {{ env.CHANNEL }}
labels: prio:blocker
---

View file

@ -5,6 +5,10 @@ on:
schedule:
- cron: '0 * * * *'
permissions:
contents: read
issues: write
jobs:
nixos-channels:
@ -68,6 +72,16 @@ jobs:
done
if: github.repository_owner == 'NixOS'
- name: Create issue if failed
if: failure()
uses: JasonEtco/create-an-issue@v2
with:
filename: .github/failing-import-issue.md
search_existing: open
update_existing: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CHANNEL: ${{ matrix.channel }}
import-flakes:
runs-on: ubuntu-latest