Skip to content

Commit

Permalink
Merge pull request objectionary#2760 from h1alexbel/2094
Browse files Browse the repository at this point in the history
report issue GitHub action on `daily.yml` failure
  • Loading branch information
yegor256 authored Jan 10, 2024
2 parents 00a9eb2 + 1f8ee6a commit 52c181b
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,12 @@ jobs:
${SCRIPT} --max 10 --folder ${GITHUB_WORKSPACE}/eo-maven-plugin
# Test eo-runtime
${SCRIPT} --max 10 --folder ${GITHUB_WORKSPACE}/eo-runtime --compilation true
# @todo #2085:90min Add GitHub action step to create an issue.
# It would be convenient to add github action step that will create an
# issue in case of any of the tests is failed. We can do it through
# <a href="https://github.com/JasonEtco/create-an-issue">create-an-issue</a>
# action. Also, you can read about that problem in that discussion:
# <a href="https://github.com/orgs/community/discussions/25111">
# Create an issue case the workflow fails</a>

report-fail:
name: Create issue on failure
needs: build
if: failure() && github.even.pull_request == null
runs-on: ubuntu-22.04
steps:
- uses: jayqi/failed-build-issue-action@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 52c181b

Please sign in to comment.