Skip to content

Commit

Permalink
Update release-edit-with-push.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tamaina authored Jul 9, 2024
1 parent a692898 commit 36fd330
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions .github/workflows/release-edit-with-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,30 +27,20 @@ jobs:
id: get_pr
env:
STABLE_BRANCH: ${{ vars.STABLE_BRANCH }}
- name: PR existance check
run: |
echo "$PR_NUMBER"
env:
PR_NUMBER: ${{ steps.get_pr.outputs.pr_number }}
- name: PR existance check
if: steps.get_pr.outputs.pr_number == ''
run: |
echo "PR Number not found. exit."
exit 1;
- name: Get target version
if: success()
if: steps.get_pr.outputs.pr_number != ''
uses: joinmisskey/release-actions/.github/actions/get-target-version@main
id: v
# CHANGELOG.mdの内容を取得
- name: Get changelog
if: success()
if: steps.get_pr.outputs.pr_number != ''
uses: joinmisskey/release-actions/.github/actions/get-changelog@main
with:
version: ${{ steps.v.outputs.target_version }}
id: changelog
# PRのnotesを更新
- name: Update PR
if: success()
if: steps.get_pr.outputs.pr_number != ''
run: |
gh pr edit "$PR_NUMBER" --body "$CHANGELOG"
env:
Expand Down

0 comments on commit 36fd330

Please sign in to comment.