Skip to content

Commit

Permalink
chore(ci): Create issue on sitespeed failure MAASENG-2176 (#5170)
Browse files Browse the repository at this point in the history
- Added failure condition to sitespeed.io workflow
- Created universal CI failure issue template
- Directed all non-PR workflows to use template
  • Loading branch information
ndv99 authored Sep 21, 2023
1 parent 2f3dfca commit cec73b7
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 42 deletions.
9 changes: 0 additions & 9 deletions .github/ISSUE_TEMPLATE/accessibility-failure.md

This file was deleted.

9 changes: 9 additions & 0 deletions .github/ISSUE_TEMPLATE/ci-failure.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
name: '{{ env.WORKFLOW }} failure'
about: ''
title: '{{ env.BRANCH_NAME }} {{ env.WORKFLOW }} run failed'
assignees: ''

---

{{ env.WORKFLOW }} [failed](https://github.com/{{ env.REPO }}/actions/runs/{{ env.RUN_ID }}) for the {{ env.BRANCH_NAME }} branch.
9 changes: 0 additions & 9 deletions .github/ISSUE_TEMPLATE/cypress-failure.md

This file was deleted.

9 changes: 0 additions & 9 deletions .github/ISSUE_TEMPLATE/maas-io-docs-failed.md

This file was deleted.

9 changes: 0 additions & 9 deletions .github/ISSUE_TEMPLATE/upload-failure.md

This file was deleted.

5 changes: 3 additions & 2 deletions .github/workflows/accessibility.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: accessibility
name: Accessibility
on:
push:
branches:
Expand Down Expand Up @@ -39,6 +39,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: ${{ github.repository }}
RUN_ID: ${{ github.run_id }}
WORKFLOW: ${{ github.workflow }}
with:
filename: .github/ISSUE_TEMPLATE/accessibility-failure.md
filename: .github/ISSUE_TEMPLATE/ci-failure.md
update_existing: true
3 changes: 2 additions & 1 deletion .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: ${{ github.repository }}
RUN_ID: ${{ github.run_id }}
WORKFLOW: ${{ github.workflow }}
with:
filename: .github/ISSUE_TEMPLATE/cypress-failure.md
filename: .github/ISSUE_TEMPLATE/ci-failure.md
update_existing: true
3 changes: 2 additions & 1 deletion .github/workflows/links-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: ${{ github.repository }}
RUN_ID: ${{ github.run_id }}
WORKFLOW: ${{ github.workflow }}
with:
filename: .github/ISSUE_TEMPLATE/maas-io-docs-failed.md
filename: .github/ISSUE_TEMPLATE/ci-failure.md
update_existing: true
11 changes: 11 additions & 0 deletions .github/workflows/sitespeed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,14 @@ jobs:
with:
name: sitespeed.io-results
path: sitespeed.io/results
- name: Create issue on failure
if: failure()
uses: JasonEtco/create-an-issue@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: ${{ github.repository }}
RUN_ID: ${{ github.run_id }}
WORKFLOW: ${{ github.workflow }}
with:
filename: .github/ISSUE_TEMPLATE/ci-failure.md
update_existing: true
5 changes: 3 additions & 2 deletions .github/workflows/upload.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Upload
name: Build upload
on:
push:
branches:
Expand Down Expand Up @@ -51,6 +51,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: ${{ github.repository }}
RUN_ID: ${{ github.run_id }}
WORKFLOW: ${{ github.workflow }}
with:
filename: .github/ISSUE_TEMPLATE/upload-failure.md
filename: .github/ISSUE_TEMPLATE/ci-failure.md
update_existing: true

0 comments on commit cec73b7

Please sign in to comment.