|
69 | 69 | sed -i 's/platformVersion=${{ steps.current-version.outputs.result }}/platformVersion=${{ steps.latest-version.outputs.result }}/' ${{ inputs.gradlePropertiesPath }} |
70 | 70 | git diff |
71 | 71 | - name: Create Pull Request for Gateway Plugin |
| 72 | + id: create-gateway-pr |
72 | 73 | if: ${{ inputs.pluginId == 'gateway-plugin' && steps.latest-version.outputs.result != steps.current-version.outputs.result }} |
73 | 74 | uses: peter-evans/create-pull-request@v4 |
74 | 75 | with: |
@@ -100,8 +101,13 @@ jobs: |
100 | 101 | token: ${{ secrets.roboquatRepoPat }} |
101 | 102 | committer: Robo Quat <[email protected]> |
102 | 103 | author: Robo Quat <[email protected]> |
| 104 | + - name: Approve Pull Request for Gateway Plugin |
| 105 | + if: ${{ steps.create-gateway-pr.outputs.pull-request-number }} |
| 106 | + uses: hmarr/auto-approve-action@v3 |
| 107 | + with: |
| 108 | + pull-request-number: ${{ steps.create-gateway-pr.outputs.pull-request-number }} |
103 | 109 | - name: Create Pull Request for Backend Plugin |
104 | | - id: create-pr |
| 110 | + id: create-backend-pr |
105 | 111 | if: ${{ inputs.pluginId == 'backend-plugin' && steps.latest-version.outputs.result != steps.current-version.outputs.result }} |
106 | 112 | uses: peter-evans/create-pull-request@v4 |
107 | 113 | with: |
@@ -135,11 +141,11 @@ jobs: |
135 | 141 | token: ${{ secrets.roboquatRepoPat }} |
136 | 142 | committer: Robo Quat <[email protected]> |
137 | 143 | author: Robo Quat <[email protected]> |
138 | | - - name: Auto Approve Pull Request |
139 | | - if: ${{ steps.create-pr.outputs.pull-request-number }} |
| 144 | + - name: Approve Pull Request for Backend Plugin |
| 145 | + if: ${{ steps.create-backend-pr.outputs.pull-request-number }} |
140 | 146 | uses: hmarr/auto-approve-action@v3 |
141 | 147 | with: |
142 | | - pull-request-number: ${{ steps.create-pr.outputs.pull-request-number }} |
| 148 | + pull-request-number: ${{ steps.create-backend-pr.outputs.pull-request-number }} |
143 | 149 | - name: Get previous job's status |
144 | 150 | id: lastrun |
145 | 151 | uses: filiptronicek/get-last-job-status@main |
|
0 commit comments