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 }}