From 86105e5c1312ee6aa3fe5dda9e46c1541b0547bf Mon Sep 17 00:00:00 2001 From: Hiroki Sugawara Date: Tue, 26 Dec 2023 18:55:35 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=9E=E3=82=A4=E3=83=AB=E3=82=B9=E3=83=88?= =?UTF-8?q?=E3=83=BC=E3=83=B3=E3=81=AE=E8=AA=AC=E6=98=8E=E6=96=87=E3=82=92?= =?UTF-8?q?=E3=82=A8=E3=82=B9=E3=82=B1=E3=83=BC=E3=83=97=E3=81=A7=E3=81=8D?= =?UTF-8?q?=E3=81=AA=E3=81=84=E4=B8=8D=E5=85=B7=E5=90=88=E3=82=92=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/publish-release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 61dac43..f4e73a1 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -58,9 +58,9 @@ jobs: - name: Set up a new release if: steps.merged_pr.outputs.status == 'yes' id: new_release + env: + milestone: ${{ toJSON(github.event.pull_request.milestone) }} run: | - milestone=$(echo '${{ toJSON(github.event.pull_request.milestone) }}' | jq -r) - if [[ "$(echo "${milestone}" | jq -r '.title')" =~ ^v[0-9]\.[0-9]+\.[0-9]+$ ]] && [ ${#BASH_REMATCH[@]} -gt 0 ]; then echo "name=$(echo "${milestone}" | jq -r '.title')" >> $GITHUB_OUTPUT elif [[ "${{ steps.latest_release_tag.outputs.result }}" =~ ^v[0-9]\.[0-9]+\.[0-9]+$ ]] && [ ${#BASH_REMATCH[@]} -gt 0 ]; then