From 4fb48bac8828954aaf30fc7eb1a7cf4e1b1fecbc Mon Sep 17 00:00:00 2001 From: Kyle Harding Date: Fri, 10 Nov 2023 15:22:50 -0500 Subject: [PATCH] Always publish GitHub releases even without artifacts Change-type: minor Signed-off-by: Kyle Harding --- .github/workflows/flowzone.yml | 12 ------------ flowzone.yml | 13 ------------- 2 files changed, 25 deletions(-) diff --git a/.github/workflows/flowzone.yml b/.github/workflows/flowzone.yml index f2f533b9b..2099c2e35 100644 --- a/.github/workflows/flowzone.yml +++ b/.github/workflows/flowzone.yml @@ -3026,19 +3026,7 @@ jobs: uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a with: path: ${{ runner.temp }} - - name: Check if any release artifacts exist - id: gh_artifacts - env: - GH_ARTIFACTS: ${{ runner.temp }}/gh-release-${{ github.event.pull_request.head.sha || github.event.head_commit.id }} - run: | - set -ea - - artifact_count=0 - [ -d "$GH_ARTIFACTS" ] && \ - artifact_count=$(ls "$GH_ARTIFACTS" | wc -l | sed 's/^ *//;s/ *$//') - echo "count=$artifact_count" >> $GITHUB_OUTPUT - name: Publish artifacts - if: steps.gh_artifacts.outputs.count != '0' uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 with: token: ${{ steps.gh_app_token.outputs.token || secrets.FLOWZONE_TOKEN }} diff --git a/flowzone.yml b/flowzone.yml index 1dac511e2..cdb557426 100644 --- a/flowzone.yml +++ b/flowzone.yml @@ -2893,21 +2893,8 @@ jobs: with: path: ${{ runner.temp }} - - name: Check if any release artifacts exist - id: gh_artifacts - env: - GH_ARTIFACTS: ${{ runner.temp }}/gh-release-${{ github.event.pull_request.head.sha || github.event.head_commit.id }} - run: | - set -ea - - artifact_count=0 - [ -d "$GH_ARTIFACTS" ] && \ - artifact_count=$(ls "$GH_ARTIFACTS" | wc -l | sed 's/^ *//;s/ *$//') - echo "count=$artifact_count" >> $GITHUB_OUTPUT - # https://github.com/softprops/action-gh-release - name: Publish artifacts - if: steps.gh_artifacts.outputs.count != '0' uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v0.1.15 with: token: ${{ steps.gh_app_token.outputs.token || secrets.FLOWZONE_TOKEN }}