create issue from failed runs

This commit is contained in:
Jacob Heider 2023-01-24 17:21:32 -05:00
parent 1b365dd48c
commit 8826588b64
No known key found for this signature in database
GPG key ID: A98011B5713535BF
2 changed files with 19 additions and 0 deletions

7
.github/ISSUE_TEMPLATE.md vendored Normal file
View file

@ -0,0 +1,7 @@
---
title: "new release: {{env.PACKAGE}} failed"
assignees: jhheider
labels: bug
---
A new-version run for the {{env.PACKAGE}} release. Review the failure
<a href="{{env.URL}}">here</a> and mitigate.

View file

@ -8,6 +8,10 @@ on:
required: true required: true
type: string type: string
permissions:
contents: read
issues: write
jobs: jobs:
build: build:
uses: ./.github/workflows/build.yml uses: ./.github/workflows/build.yml
@ -35,3 +39,11 @@ jobs:
SLACK_CHANNEL: ${{ secrets.SLACK_CHANNEL }} SLACK_CHANNEL: ${{ secrets.SLACK_CHANNEL }}
SLACK_MESSAGE: new-version:${{ inputs.projects }} ${{ steps.status.outputs.status }} SLACK_MESSAGE: new-version:${{ inputs.projects }} ${{ steps.status.outputs.status }}
SLACK_COLOR: ${{ steps.status.outputs.status }} SLACK_COLOR: ${{ steps.status.outputs.status }}
- uses: actions/checkout@v3
if: ${{ steps.status.outputs.status == 'failure' }}
- uses: JasonEtco/create-an-issue@v2
if: ${{ steps.status.outputs.status == 'failure' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PACKAGE: ${{ inputs.projects }}
URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}