From 948d300f4309d96e353f3b4f1f1b265114228a04 Mon Sep 17 00:00:00 2001 From: Alex Corey Date: Wed, 21 Sep 2022 12:47:35 -0400 Subject: [PATCH] Fixes workflow that update dependabot prs --- .github/workflows/update_dependabot_prs.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/update_dependabot_prs.yml b/.github/workflows/update_dependabot_prs.yml index b2c9016719..a61eb1c172 100644 --- a/.github/workflows/update_dependabot_prs.yml +++ b/.github/workflows/update_dependabot_prs.yml @@ -19,8 +19,11 @@ jobs: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} OWNER: ${{ github.repository_owner }} REPO: ${{ github.event.repository.name }} - BRANCH: ${{github.event.pull_request.head.ref}} - PR: ${{github.event.pull_request}} + PR: ${{github.event.pull_request.number}} + PR_BODY: ${{github.event.pull_request.body}} run: | - gh pr checkout ${{ env.BRANCH }} - gh pr edit --body "${{ env.PR }}\nBug, Docs Fix or other nominal change" + gh pr checkout ${{ env.PR }} + echo "${{ env.PR_BODY }}" > my_pr_body.txt + echo "" >> my_pr_body.txt + echo "Bug, Docs Fix or other nominal change" >> my_pr_body.txt + gh pr edit ${{env.PR}} --body-file my_pr_body.txt