diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 08b91c3..0aa7e65 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,8 +31,6 @@ jobs: name: "Dispatch Release" steps: - uses: actions/checkout@v4 - with: - ref: refs/pull/${{ needs.get-prs.outputs.pr_number }}/merge - name: git config run: | git config --local user.email "LuckyBeast@users.noreply.github.com" @@ -42,6 +40,12 @@ jobs: run: | PR_JSON=$(gh pr view ${{ needs.get-prs.outputs.pr_number }} --json isDraft,headRefName) echo "PR_IS_DRAFT=$(echo $PR_JSON | jq -r '.isDraft')" >> $GITHUB_OUTPUT + echo "PR_HEAD_REF=$(echo $PR_JSON | jq -r '.headRefName')" >> $GITHUB_OUTPUT + id: get_pr + # checkout PR + - uses: actions/checkout@v4 + with: + ref: ${{ steps.get_pr.outputs.PR_HEAD_REF }} # jqでpackage.jsonから現在のバージョンを取得 - name: Get current version run: |