Skip to content
This repository has been archived by the owner on Jan 17, 2024. It is now read-only.

Commit

Permalink
actions/checkout@v4
Browse files Browse the repository at this point in the history
  • Loading branch information
tamaina committed Jan 17, 2024
1 parent 7e41965 commit 6aec0bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,15 @@ jobs:
# 開いているリリースのパッチバージョンを上げる
name: "Dispatch Release"
steps:
- uses: actions/checkout@v4
# pr_numberからPR情報を取得
- name: Get PR
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
# checkout PR
- uses: actions/checkout@v4
with:
ref: ${{ steps.get_pr.outputs.PR_HEAD_REF }}
Expand Down

0 comments on commit 6aec0bc

Please sign in to comment.