Skip to content

Commit 1476cf7

Browse files
MaesterChestnutChris Chestnut
andauthored
Create issue when FAD compatibility tests fail on main so oncall can get alerted via buganizer (#8190)
Co-authored-by: Chris Chestnut <cchestnut@google.com>
1 parent 6506939 commit 1476cf7

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/app-distribution-gradle-compatibility-tests.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ on:
1212

1313
permissions:
1414
contents: read
15+
issues: write
1516

1617
jobs:
1718
app-distribution-plugin:
@@ -52,3 +53,13 @@ jobs:
5253
with:
5354
name: integration-test-report
5455
path: firebase-appdistribution-gradle/build/reports/tests/
56+
57+
- name: Create GitHub Issue on Failure
58+
if: failure() && (github.event_name == 'schedule')
59+
env:
60+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
61+
run: |
62+
gh issue create \
63+
--title "[firebase-appdistribution] Gradle Compatibility Tests Failed" \
64+
--body "The daily compatibility tests failed on the main branch. Please check the workflow logs here to diagnose the failure: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" \
65+
--label "bug,ci-failure,api: appdistribution"

0 commit comments

Comments
 (0)