Skip to content

Commit c488558

Browse files
tools: open issue when update workflow fails
PR-URL: nodejs#48018 Refs: nodejs/security-wg#973 Reviewed-By: Richard Lau <rlau@redhat.com>
1 parent 442c352 commit c488558

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
title: 'deps: update {{ env.FAILED_DEP }} job failed'
3+
labels: dependencies
4+
---
5+
This is an automatically generated issue by the {{ tools.context.action }} GitHub Action.
6+
The update [workflow]({{ env.JOB_URL }}) has failed for {{ tools.context.workflow }}.
7+
@nodejs/security-wg @nodejs/actions

.github/workflows/tools.yml

+11
Original file line numberDiff line numberDiff line change
@@ -296,3 +296,14 @@ jobs:
296296
labels: ${{ matrix.label }}
297297
title: '${{ matrix.subsystem }}: update ${{ matrix.id }} to ${{ env.NEW_VERSION }}'
298298
update-pull-request-title-and-body: true
299+
- name: Open issue on fail
300+
id: create-issue
301+
if: github.event_name == 'schedule' && ${{ failure() }}
302+
uses: JasonEtco/create-an-issue@e27dddc79c92bc6e4562f268fffa5ed752639abd # 2.9.1
303+
env:
304+
GITHUB_TOKEN: ${{ secrets.GH_USER_TOKEN }}
305+
FAILED_DEP: ${{ matrix.id }}
306+
JOB_URL: ${{ github.event.repository.html_url }}/actions/runs/${{ github.run_id }}
307+
with:
308+
filename: .github/FAILED_DEP_UPDATE_ISSUE_TEMPLATE.md
309+
update_existing: true

0 commit comments

Comments
 (0)