Skip to content

Commit 73a4e8f

Browse files
authored
create issue on failure (#124)
* create issue on failure * fix md * behold my final form. * don't use default template * create own job
1 parent f3730aa commit 73a4e8f

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
title: "teaxyz/cli release: CI run failed"
3+
assignees: mxcl
4+
labels: bug
5+
---
6+
A CI run for the new teaxyz/cli release has failed. Review the failure
7+
<a href="{{env.URL}}">here</a> and mitigate.

.github/workflows/smoke-test.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: smoke-test
2+
3+
on: [workflow_dispatch]
4+
5+
concurrency:
6+
group: ${{ github.ref }}/smoke-test
7+
cancel-in-progress: true
8+
9+
permissions:
10+
contents: read
11+
issues: write
12+
13+
jobs:
14+
ci:
15+
uses: ./.github/workflows/ci.yml
16+
secrets: inherit
17+
18+
notify:
19+
runs-on: ubuntu-latest
20+
needs: [ci]
21+
if: always()
22+
steps:
23+
- uses: martialonline/workflow-status@v3
24+
id: status
25+
- uses: actions/checkout@v3
26+
if: ${{ steps.status.outputs.status == 'failure' }}
27+
- uses: JasonEtco/create-an-issue@v2
28+
if: ${{ steps.status.outputs.status == 'failure' }}
29+
with:
30+
filename: .github/CI_FAILURE_ISSUE_TEMPLATE.md
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}

0 commit comments

Comments
 (0)