Skip to content

Commit 3dda4f9

Browse files
committed
docs: Update PR-to-production action
1 parent f6a926f commit 3dda4f9

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

.github/workflows/pull_request_closed.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-22.04
1010
steps:
1111
- name: Should create PR to production?
12-
uses: peter-evans/find-comment@v1
12+
uses: peter-evans/find-comment@3eae4d37986fb5a8592848f6a574fdf654e61f9e
1313
id: fc
1414
with:
1515
issue-number: ${{github.event.number}}
@@ -39,26 +39,22 @@ jobs:
3939
echo "##[set-output name=branch;]$(echo ${BRANCH_NAME})"
4040
- name: Failed cherry-pick
4141
if: ${{ failure() }}
42-
uses: peter-evans/create-or-update-comment@v1
42+
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043
4343
with:
4444
issue-number: ${{github.event.number}}
4545
body: |
4646
Automatic cherry-pick & PR to production failed. Ping @telerik/blazor-admins for manual cherry-pick and push to production.
4747
- name: pull-request
4848
id: pr
4949
if: steps.fc.outputs.comment-id != ''
50-
uses: repo-sync/pull-request@v2
50+
uses: actions/checkout@v3
5151
with:
52-
destination_branch: "production"
53-
source_branch: ${{ steps.cp.outputs.branch }}
54-
github_token: ${{ secrets.GITHUB_TOKEN }}
55-
pr_title: "Merge ${{ steps.cp.outputs.branch }} into production"
56-
pr_body: |
57-
*This is automatically generated PR*
58-
PR from master branch: #${{github.event.number}}. Once the change is merged, upload the changes to LIVE.
52+
token: '${{ secrets.GITHUB_TOKEN }}'
53+
run: |
54+
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."
5955
- name: Post PR link
6056
if: steps.pr.outputs.pr_url != ''
61-
uses: peter-evans/create-or-update-comment@v1
57+
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043
6258
with:
6359
issue-number: ${{github.event.number}}
6460
body: |

0 commit comments

Comments
 (0)