Skip to content

Commit 7b59818

Browse files
Merge PR when update via repo dispatch (AST-000)
1 parent 99ad27e commit 7b59818

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
@@ -58,6 +58,7 @@ jobs:
5858
git commit -m "Track Checkmarx CLI binaries with Git LFS"
5959
6060
- name: Create Pull Request
61+
id: cretae_pull_request
6162
if: steps.checkmarx-ast-cli.outputs.current_tag != steps.checkmarx-ast-cli.outputs.release_tag
6263
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50 #v6
6364
with:
@@ -72,3 +73,11 @@ jobs:
7273
[1]: https://github.com/Checkmarx/checkmarx-ast-cli
7374
labels: cxone
7475
branch: feature/update_cli
76+
77+
- name: Enable Pull Request Automerge
78+
if: ${{ github.event_name == 'repository_dispatch' && steps.cretae_pull_request.outputs.pull-request-operation == 'created' }}
79+
uses: peter-evans/enable-pull-request-automerge@v3
80+
with:
81+
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
82+
pull-request-number: ${{ steps.cretae_pull_request.outputs.pull-request-number }}
83+
merge-method: squash

0 commit comments

Comments
 (0)