mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 18:25:08 +03:00
create issue from failed runs
This commit is contained in:
parent
1b365dd48c
commit
8826588b64
2 changed files with 19 additions and 0 deletions
7
.github/ISSUE_TEMPLATE.md
vendored
Normal file
7
.github/ISSUE_TEMPLATE.md
vendored
Normal 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.
|
12
.github/workflows/new-version.yml
vendored
12
.github/workflows/new-version.yml
vendored
|
@ -8,6 +8,10 @@ on:
|
|||
required: true
|
||||
type: string
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
issues: write
|
||||
|
||||
jobs:
|
||||
build:
|
||||
uses: ./.github/workflows/build.yml
|
||||
|
@ -35,3 +39,11 @@ jobs:
|
|||
SLACK_CHANNEL: ${{ secrets.SLACK_CHANNEL }}
|
||||
SLACK_MESSAGE: new-version:${{ inputs.projects }} ${{ 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 }}
|
Loading…
Reference in a new issue