mirror of
https://github.com/block/goose.git
synced 2026-07-17 12:56:20 +02:00
Post release checklist as a comment on release PRs (#7307)
This commit is contained in:
@@ -101,10 +101,18 @@ jobs:
|
||||
|
||||
- name: Create Pull Request
|
||||
run: |
|
||||
gh pr create \
|
||||
PR_URL=$(gh pr create \
|
||||
-B "$TARGET_BRANCH" \
|
||||
-H "${{ env.branch_name }}" \
|
||||
--title "chore(release): release version ${{ env.version }} ($BUMP_TYPE)" \
|
||||
--body-file pr_body.txt
|
||||
--body-file pr_body.txt)
|
||||
echo "pr_url=$PR_URL" >> $GITHUB_ENV
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Post release checklist comment
|
||||
run: |
|
||||
sed 's/{{VERSION}}/${{ env.version }}/g' RELEASE_CHECKLIST.md > checklist_comment.md
|
||||
gh pr comment "${{ env.pr_url }}" --body-file checklist_comment.md
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user