Skip to content

Commit

Permalink
Merge branch 'main' into feat/driving-dimensions
Browse files Browse the repository at this point in the history
  • Loading branch information
umutsoysalansys authored Dec 12, 2024
2 parents 4f8ea14 + 2248df3 commit 31045e1
Show file tree
Hide file tree
Showing 89 changed files with 935 additions and 646 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Dependabot auto-merge
name: Automerge PRs (dependabot and pre-commit)
on: pull_request

permissions:
Expand All @@ -8,7 +8,6 @@ permissions:
jobs:
dependabot:
runs-on: ubuntu-latest
# Only run this workflow for branches starting with "dependabot/"
if: startsWith(github.head_ref, 'dependabot/')
steps:
- name: Dependabot metadata
Expand All @@ -29,3 +28,25 @@ jobs:
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}

pre-commit:
runs-on: ubuntu-latest
if: startsWith(github.head_ref, 'pre-commit-ci-update-config')
steps:
- name: Assign PR to pyansys-ci-bot
run: gh pr edit --add-assignee pyansys-ci-bot "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}

- name: Approve a PR
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}

- name: Enable auto-merge
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
Loading

0 comments on commit 31045e1

Please sign in to comment.