Skip to content

Commit

Permalink
tools: open issue when update workflow fails
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-ippolito committed May 15, 2023
1 parent b270984 commit 3316d89
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/ISSUE_TEMPLATE/failed-dep-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: 'deps: update {{ env.FAILED_DEP }} job failed'
labels: dependencies
description: |
This is an automatically generated issue by
the {{ tools.context.action }} GitHub Action.
The update workflow has failed for {{ tools.context.workflow }}.
@nodejs/security-wg
10 changes: 10 additions & 0 deletions .github/workflows/tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -296,3 +296,13 @@ jobs:
labels: ${{ matrix.label }}
title: '${{ matrix.subsystem }}: update ${{ matrix.id }} to ${{ env.NEW_VERSION }}'
update-pull-request-title-and-body: true
- name: Open issue on fail
id: create-issue
if: github.event_name == 'schedule' || inputs.id == 'all' || inputs.id == matrix.id && ${{ failure() }}
uses: JasonEtco/create-an-issue@e27dddc79c92bc6e4562f268fffa5ed752639abd
env:
GITHUB_TOKEN: ${{ secrets.GH_USER_TOKEN }}
FAILED_DEP: ${{ matrix.id }}
with:
filename: .github/ISSUE_TEMPLATE/failed-dep-update.md
update_existing: true

0 comments on commit 3316d89

Please sign in to comment.