Skip to content

Commit ffeb288

Browse files
Merge PR when update via repo dispatch (AST-000)
1 parent 584652f commit ffeb288

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/update-cli.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ jobs:
4949
5050
# Create a Pull Request with the version changes
5151
- name: Create Pull Request
52+
id: cretae_pull_request
5253
if: steps.checkmarx-ast-cli.outputs.current_tag != steps.checkmarx-ast-cli.outputs.release_tag
5354
uses: peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c #v6
5455
with:
@@ -63,3 +64,11 @@ jobs:
6364
[1]: https://github.com/Checkmarx/checkmarx-ast-cli
6465
labels: cxone
6566
branch: feature/update_cli_${{ steps.checkmarx-ast-cli.outputs.release_tag }}
67+
68+
- name: Enable Pull Request Automerge
69+
if: ${{ github.event_name == 'repository_dispatch' && steps.cretae_pull_request.outputs.pull-request-operation == 'created' }}
70+
uses: peter-evans/enable-pull-request-automerge@v3
71+
with:
72+
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
73+
pull-request-number: ${{ steps.cretae_pull_request.outputs.pull-request-number }}
74+
merge-method: squash

0 commit comments

Comments
 (0)