|
9 | 9 | runs-on: ubuntu-22.04 |
10 | 10 | steps: |
11 | 11 | - name: Should create PR to production? |
12 | | - uses: peter-evans/find-comment@v1 |
| 12 | + uses: peter-evans/find-comment@3eae4d37986fb5a8592848f6a574fdf654e61f9e |
13 | 13 | id: fc |
14 | 14 | with: |
15 | 15 | issue-number: ${{github.event.number}} |
@@ -39,26 +39,22 @@ jobs: |
39 | 39 | echo "##[set-output name=branch;]$(echo ${BRANCH_NAME})" |
40 | 40 | - name: Failed cherry-pick |
41 | 41 | if: ${{ failure() }} |
42 | | - uses: peter-evans/create-or-update-comment@v1 |
| 42 | + uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 |
43 | 43 | with: |
44 | 44 | issue-number: ${{github.event.number}} |
45 | 45 | body: | |
46 | 46 | Automatic cherry-pick & PR to production failed. Ping @telerik/blazor-admins for manual cherry-pick and push to production. |
47 | 47 | - name: pull-request |
48 | 48 | id: pr |
49 | 49 | if: steps.fc.outputs.comment-id != '' |
50 | | - uses: repo-sync/pull-request@v2 |
| 50 | + uses: actions/checkout@v3 |
51 | 51 | 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." |
59 | 55 | - name: Post PR link |
60 | 56 | if: steps.pr.outputs.pr_url != '' |
61 | | - uses: peter-evans/create-or-update-comment@v1 |
| 57 | + uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 |
62 | 58 | with: |
63 | 59 | issue-number: ${{github.event.number}} |
64 | 60 | body: | |
|
0 commit comments