Skip to content

Commit

Permalink
Merge pull request #613 from microsoft/ianhelle/build-break-file-issu…
Browse files Browse the repository at this point in the history
…e-2023-01-26

Adding job to file issue if main build fails.
  • Loading branch information
petebryan committed Feb 2, 2023
2 parents 941145e + da86adf commit db1a9f9
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
branches: [main]
pull_request:
branches: [main, release/*]
schedule:
- cron: "0 0 * * 0,2,4"

jobs:
build:
Expand Down Expand Up @@ -174,3 +176,15 @@ jobs:
# Temporarily fixing Prospector to 1.7.7 - due to bug wrt to PyRoma - https://github.com/PyCQA/prospector/issues/562
python -m pip install prospector[with_pyroma]==1.7.7 && prospector --ignore-paths tests --without-tool pylint
if: ${{ always() }}
check_status:
runs-on: ubuntu-latest
needs: [build, lint]
steps:
- name: File build fail issue
if: ${{ env.GITHUB_REF_NAME == 'main' && ( needs.build.result == 'failure' || needs.lint.result == 'failure' ) }}
uses: dacbd/create-issue-action@v1
with:
token: ${{ github.token }}
title: "Build failed for main branch"
body: The build failed on branch ${{ github.ref }}. Please investigate
labels: build_break, bug, high_severity

0 comments on commit db1a9f9

Please sign in to comment.