Open issue on failing import (#605)
This commit is contained in:
parent
dff4ba7132
commit
727c84003e
4
.github/failing-import-issue.md
vendored
Normal file
4
.github/failing-import-issue.md
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
title: Failing import for nixpkgs {{ env.CHANNEL }}
|
||||
labels: prio:blocker
|
||||
---
|
14
.github/workflows/import-to-elasticsearch.yml
vendored
14
.github/workflows/import-to-elasticsearch.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue