From 48a71ff03961f4802cc2741b39f6685652c24310 Mon Sep 17 00:00:00 2001 From: scarf Date: Mon, 13 Nov 2023 12:12:28 +0900 Subject: [PATCH] ci: try to fix if condition --- .github/workflows/release.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5fd73b1b3586..31c4f9d24a9b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,13 +18,14 @@ jobs: - id: yesterday run: | COMMITS=$(git log --oneline --since=$(date -u --iso-8601 --date='1 day ago') | wc -l) - echo "count=$COMMITS" >> $GITHUB_ENV + echo "count=$COMMITS" + echo "count=0" >> "$GITHUB_OUTPUT" release: needs: commits - if: fromJSON(needs.commits.outputs.count) > 0 name: Create Release runs-on: ubuntu-22.04 + if: fromJson(needs.commits.outputs.count) > 0 outputs: upload_url: ${{ steps.create_release.outputs.upload_url }} timestamp: ${{ steps.get-timestamp.outputs.time }}