Skip to content

Commit

Permalink
tools: open issue when update workflow fails
Browse files Browse the repository at this point in the history
PR-URL: nodejs#48018
Refs: nodejs/security-wg#973
Reviewed-By: Richard Lau <[email protected]>
  • Loading branch information
marco-ippolito authored and Ceres6 committed Aug 14, 2023
1 parent 5cb827d commit 4e085e1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/FAILED_DEP_UPDATE_ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: 'deps: update {{ env.FAILED_DEP }} job failed'
labels: dependencies
---
This is an automatically generated issue by the {{ tools.context.action }} GitHub Action.
The update [workflow]({{ env.JOB_URL }}) has failed for {{ tools.context.workflow }}.
@nodejs/security-wg @nodejs/actions
11 changes: 11 additions & 0 deletions .github/workflows/tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -296,3 +296,14 @@ 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' && ${{ failure() }}
uses: JasonEtco/create-an-issue@e27dddc79c92bc6e4562f268fffa5ed752639abd # 2.9.1
env:
GITHUB_TOKEN: ${{ secrets.GH_USER_TOKEN }}
FAILED_DEP: ${{ matrix.id }}
JOB_URL: ${{ github.event.repository.html_url }}/actions/runs/${{ github.run_id }}
with:
filename: .github/FAILED_DEP_UPDATE_ISSUE_TEMPLATE.md
update_existing: true

0 comments on commit 4e085e1

Please sign in to comment.