Skip to content

Commit

Permalink
Merge pull request #22 from h-sugawara/release/fix-publish-release
Browse files Browse the repository at this point in the history
Release/v1.1.0
  • Loading branch information
h-sugawara authored Dec 26, 2023
2 parents 8e955ce + 86105e5 commit c0f7f4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c0f7f4c

Please sign in to comment.