From de4c988cf577373c0146d8571a7b9798a87915ef 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 fbb03b2aa..55c8f1f61 100644 --- a/.github/workflows/flowzone.yml +++ b/.github/workflows/flowzone.yml @@ -3025,19 +3025,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 8475b77c8..601c1b02f 100644 --- a/flowzone.yml +++ b/flowzone.yml @@ -2891,21 +2891,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 }}