Skip to content

Commit

Permalink
create issue on failure (#124)
Browse files Browse the repository at this point in the history
* create issue on failure

* fix md

* behold my final form.

* don't use default template

* create own job
  • Loading branch information
jhheider authored Feb 3, 2023
1 parent f3730aa commit 73a4e8f
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/CI_FAILURE_ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: "teaxyz/cli release: CI run failed"
assignees: mxcl
labels: bug
---
A CI run for the new teaxyz/cli release has failed. Review the failure
<a href="{{env.URL}}">here</a> and mitigate.
33 changes: 33 additions & 0 deletions .github/workflows/smoke-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: smoke-test

on: [workflow_dispatch]

concurrency:
group: ${{ github.ref }}/smoke-test
cancel-in-progress: true

permissions:
contents: read
issues: write

jobs:
ci:
uses: ./.github/workflows/ci.yml
secrets: inherit

notify:
runs-on: ubuntu-latest
needs: [ci]
if: always()
steps:
- uses: martialonline/workflow-status@v3
id: status
- uses: actions/checkout@v3
if: ${{ steps.status.outputs.status == 'failure' }}
- uses: JasonEtco/create-an-issue@v2
if: ${{ steps.status.outputs.status == 'failure' }}
with:
filename: .github/CI_FAILURE_ISSUE_TEMPLATE.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}

0 comments on commit 73a4e8f

Please sign in to comment.