diff --git a/.github/CI_FAILURE_ISSUE_TEMPLATE.md b/.github/CI_FAILURE_ISSUE_TEMPLATE.md new file mode 100644 index 00000000..0c8d4182 --- /dev/null +++ b/.github/CI_FAILURE_ISSUE_TEMPLATE.md @@ -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 +here and mitigate. diff --git a/.github/workflows/smoke-test.yml b/.github/workflows/smoke-test.yml new file mode 100644 index 00000000..9bf55cef --- /dev/null +++ b/.github/workflows/smoke-test.yml @@ -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 }}