Skip to content

Commit 557e84a

Browse files
authored
ci: Improve canary issue creation (#8253)
1. Do not create an issue when manually running canary tests 2. Update existing issue instead of creating a new one every time 3. Update issue name so we see which canary test is failing
1 parent 8df6a29 commit 557e84a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/canary.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,14 @@ jobs:
5353
cd packages/e2e-tests
5454
yarn test:e2e
5555
- name: Create Issue
56-
if: failure()
56+
if: failure() && github.event_name == 'schedule'
5757
uses: JasonEtco/create-an-issue@e27dddc79c92bc6e4562f268fffa5ed752639abd
5858
env:
5959
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6060
RUN_LINK: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
6161
with:
6262
filename: .github/CANARY_FAILURE_TEMPLATE.md
63+
update_existing: true
6364

6465
job_ember_canary_test:
6566
name: Ember Canary Tests
@@ -92,10 +93,12 @@ jobs:
9293
yarn ember try:one ${{ matrix.scenario }} --skip-cleanup=true
9394
9495
- name: Create Issue
95-
if: failure()
96+
if: failure() && github.event_name == 'schedule'
9697
uses: JasonEtco/create-an-issue@e27dddc79c92bc6e4562f268fffa5ed752639abd
9798
env:
9899
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
99100
RUN_LINK: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
100101
with:
101102
filename: .github/CANARY_FAILURE_TEMPLATE.md
103+
update_existing: true
104+
title: 'Ember Canary tests failed'

0 commit comments

Comments
 (0)