Skip to content

Commit 2336977

Browse files
ci: use ansys/action/hk-automerge-prs (#1824)
Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent cf3970e commit 2336977

File tree

3 files changed

+23
-52
lines changed

3 files changed

+23
-52
lines changed

Diff for: .github/workflows/automerge_prs.yml

-52
This file was deleted.

Diff for: .github/workflows/ci_cd.yml

+22
Original file line numberDiff line numberDiff line change
@@ -871,3 +871,25 @@ jobs:
871871
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
872872
bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
873873
bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }}
874+
875+
automerge-prs:
876+
name: Automerge PRs (dependabot and pre-commit.ci only)
877+
runs-on: ubuntu-latest
878+
needs: [package]
879+
if: github.event_name == 'pull_request'
880+
permissions:
881+
contents: write
882+
pull-requests: write
883+
steps:
884+
- name: Automerge PRs
885+
uses: ansys/actions/hk-automerge-prs@v8
886+
with:
887+
approver: ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
888+
approver-token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
889+
890+
- name: If pre-commit PR, add assignee
891+
if: startsWith(github.head_ref, 'pre-commit-ci-update-config')
892+
run: gh pr edit --add-assignee pyansys-ci-bot "$PR_URL"
893+
env:
894+
PR_URL: ${{github.event.pull_request.html_url}}
895+
GH_TOKEN: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}

Diff for: doc/changelog.d/1824.maintenance.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
use ansys/action/hk-automerge-prs

0 commit comments

Comments
 (0)