From cce9de484f9cf7fb59a9858fd53eac8886ddcc02 Mon Sep 17 00:00:00 2001 From: Luois45 Date: Mon, 18 Jul 2022 15:44:57 +0200 Subject: [PATCH] Added open issue on failed workflow --- .github/workflows/update_package_list.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/update_package_list.yml b/.github/workflows/update_package_list.yml index 3928364f23..8b0bfbef46 100644 --- a/.github/workflows/update_package_list.yml +++ b/.github/workflows/update_package_list.yml @@ -34,3 +34,17 @@ jobs: git pull --rebase git fetch git push -f origin HEAD:auto-update + - name: Create Issue on Failed workflow + if: ${{ failure() }} + uses: dacbd/create-issue-action@main + with: + token: ${{ github.token }} + title: Action workflow failed. + body: | + ### Context + [Failed Run](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) + [Codebase](https://github.com/${{ github.repository }}/tree/${{ github.sha }}) + Workflow name - `${{ github.workflow }}` + Job - `${{ github.job }}` + status - `${{ job.status }}` + assignees: Luois45