Skip to content

Commit 9134df6

Browse files
committed
Attempt to fix pull_request_closed action
1 parent 985eb69 commit 9134df6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/pull_request_closed.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,18 @@ jobs:
4949
- name: pull-request
5050
id: pr
5151
if: steps.fc.outputs.comment-id != ''
52-
uses: actions/checkout@v3
53-
with:
54-
token: '${{ secrets.GITHUB_TOKEN }}'
52+
env:
53+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5554
run: |
56-
gh pr create --base production --head ${{ steps.cp.outputs.branch }} --title "Merge ${{ steps.cp.outputs.branch }} into production" --body "Automatically generated PR from master branch: #${{github.event.number}}. Once the change is merged, upload the changes to LIVE."
55+
GHPR_OUTPUT=$(gh pr create --base production --head ${{ steps.cp.outputs.branch }} --title "Merge ${{ steps.cp.outputs.branch }} into production" --body "Automatically generated PR from master branch: #${{github.event.number}}. Once the change is merged, upload the changes to LIVE.")
56+
echo "##[set-output name=ghproutput;]$(echo $GHPR_OUTPUT)"
5757
- name: Post PR link
5858
if: steps.pr.outputs.pr_url != ''
5959
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043
6060
with:
6161
issue-number: ${{github.event.number}}
6262
body: |
63-
Here you are the link to your PR to production: [${{steps.pr.outputs.pr_number}}](${{steps.pr.outputs.pr_url}})
63+
Here you are the link to your PR to production: ${{ steps.pr.outputs.ghproutput }}
6464
6565
delete_branch:
6666
needs: [cherry_pick]

0 commit comments

Comments
 (0)