From b136cbe5bf29602b559f9bb1bee819a0a34aef3d Mon Sep 17 00:00:00 2001 From: Kyle Harding Date: Thu, 14 Dec 2023 18:16:38 -0500 Subject: [PATCH] Handle errors when there are no artifacts to publish Change-type: patch Signed-off-by: Kyle Harding --- .github/workflows/flowzone.yml | 3 +++ flowzone.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/flowzone.yml b/.github/workflows/flowzone.yml index 9a5ee8f54..c0dfc3fb6 100644 --- a/.github/workflows/flowzone.yml +++ b/.github/workflows/flowzone.yml @@ -3021,10 +3021,13 @@ jobs: GH_TOKEN: ${{ steps.gh_app_token.outputs.token || secrets.FLOWZONE_TOKEN }} - name: Download all artifacts uses: actions/download-artifact@7a1cd3216ca9260cd8022db641d960b1db4d1be4 + continue-on-error: true + id: download with: path: ${{ runner.temp }} - name: Publish artifacts uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 + if: steps.download.outcome == 'success' with: token: ${{ steps.gh_app_token.outputs.token || secrets.FLOWZONE_TOKEN }} name: ${{ github.event.pull_request.head.ref }} diff --git a/flowzone.yml b/flowzone.yml index 2fcc88637..c2077ac46 100644 --- a/flowzone.yml +++ b/flowzone.yml @@ -2897,12 +2897,15 @@ jobs: - name: Download all artifacts uses: actions/download-artifact@7a1cd3216ca9260cd8022db641d960b1db4d1be4 # v4.0.0 + continue-on-error: true + id: download with: path: ${{ runner.temp }} # https://github.com/softprops/action-gh-release - name: Publish artifacts uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v0.1.15 + if: steps.download.outcome == 'success' with: token: ${{ steps.gh_app_token.outputs.token || secrets.FLOWZONE_TOKEN }} name: ${{ github.event.pull_request.head.ref }}