Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tools: open issue when update workflow fails #48018

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
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
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