Create issue if nightly build fails
ADD
.github/workflows/nightly-failed.md
+---
+title: Nightly build failed
+assignees: iNikem
+labels: bug, area:build, priority:p1
+---
+Nightly job failed. Please take a look and fix it ASAP

MODIFY
.github/workflows/nightly.yaml
.github/workflows/nightly.yaml
@@ -97,3 +97,20 @@ jobs:
- name: Test with Gradle
run: ./gradlew latestDepTest
+
+ issue:
+ name: Open issue on failure
+ needs: [test, testLatestDep]
+ runs-on: ubuntu-latest
+ if: always()
+ steps:
+ # run this action to get workflow conclusion
+ # You can get conclusion by env (env.WORKFLOW_CONCLUSION)
+ - uses: technote-space/workflow-conclusion-action@v1
+ - uses: actions/checkout@v2
+ - uses: JasonEtco/create-an-issue@v2
+ if: env.WORKFLOW_CONCLUSION == 'failure' # notify only if failure
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ filename: .github/workflows/nightly-failed.md

Create issue if nightly build fails (#857)