GeezerVison is showing github.com — tools: open issue when update workflow fails · nodejs/node@db62325
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboard +7Lines changed: 7 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
|
| 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 |
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/tools.yml +11Lines changed: 11 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -296,3 +296,14 @@ jobs: |
296 | 296 | labels: ${{ matrix.label }} |
297 | 297 | title: '${{ matrix.subsystem }}: update ${{ matrix.id }} to ${{ env.NEW_VERSION }}' |
298 | 298 | 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 |