From dbe910676254e769e0e0a641160b4c728a25d042 Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Thu, 18 Nov 2021 09:22:59 -0800 Subject: [PATCH] Create issue on publish failure (#3071) Summary: We've done this for the "release" part of the workflow before but need to handle the "publish" branch separately. Pull Request resolved: https://github.com/facebook/flipper/pull/3071 Test Plan: _eyes Reviewed By: nikoant Differential Revision: D32532348 Pulled By: passy fbshipit-source-id: 622ed99ba509d4eaf7671e9b6ff3adbab277ab4e --- .github/workflows/release.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6731cd45d..b785cf150 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -184,7 +184,16 @@ jobs: with: created_tag: ${{ needs.release.outputs.tag }} args: Flipper-mac.dmg Flipper-linux.zip Flipper-win.zip - + - name: Open issue on failure + if: failure() + uses: JasonEtco/create-an-issue@v2.4.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + REPOSITORY: ${{ github.repository }} + RUN_ID: ${{ github.run_id }} + WORKFLOW_NAME: "Publish" + with: + filename: .github/action-failure-template.md dispatch: needs: - release