Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
tools: open issue when update workflow fails
  • Loading branch information
marco-ippolito committed May 15, 2023
commit 3316d89ef9fcffe0976bd6ef091b74369b11044b
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() }}
Comment thread
marco-ippolito marked this conversation as resolved.
Outdated
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