0001-Added-help-text-and-problem-matcher.patch
1 From 3860976e511f1407840c914a8c550ac154716cf9 Mon Sep 17 00:00:00 2001 2 From: dherrada <dylan.herrada@adafruit.com> 3 Date: Wed, 19 May 2021 13:35:18 -0400 4 Subject: [PATCH] Added help text and problem matcher 5 6 --- 7 .github/workflows/build.yml | 2 ++ 8 .github/workflows/failure-help-text.yml | 19 +++++++++++++++++++ 9 2 files changed, 21 insertions(+) 10 create mode 100644 .github/workflows/failure-help-text.yml 11 12 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml 13 index 3baf502..ce66461 100644 14 --- a/.github/workflows/build.yml 15 +++ b/.github/workflows/build.yml 16 @@ -49,0 +50,2 @@ jobs: 17 + - name: Setup problem matchers 18 + uses: adafruit/circuitpython-action-library-ci-problem-matchers@v1 19 diff --git a/.github/workflows/failure-help-text.yml b/.github/workflows/failure-help-text.yml 20 new file mode 100644 21 index 0000000..0b1194f 22 --- /dev/null 23 +++ b/.github/workflows/failure-help-text.yml 24 @@ -0,0 +1,19 @@ 25 +# SPDX-FileCopyrightText: 2021 Scott Shawcroft for Adafruit Industries 26 +# 27 +# SPDX-License-Identifier: MIT 28 + 29 +name: Failure help text 30 + 31 +on: 32 + workflow_run: 33 + workflows: ["Build CI"] 34 + types: 35 + - completed 36 + 37 +jobs: 38 + post-help: 39 + runs-on: ubuntu-latest 40 + if: ${{ github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.event == 'pull_request' }} 41 + steps: 42 + - name: Post comment to help 43 + uses: adafruit/circuitpython-action-library-ci-failed@v1 44 -- 45 2.25.1 46