diff --git a/.github/workflows/version-updates.yml b/.github/workflows/version-updates.yml new file mode 100644 index 00000000..f98f1f34 --- /dev/null +++ b/.github/workflows/version-updates.yml @@ -0,0 +1,20 @@ +name: Version Update Auto Merge +on: pull_request + +permissions: + contents: write + pull-requests: write + +jobs: + auto-merge: + runs-on: ubuntu-latest + if: ${{ github.actor == 'dependabot[bot]' }} + steps: + - run: gh pr review --approve "$PR_URL" + env: + PR_URL: ${{github.event.pull_request.html_url}} + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + - run: gh pr merge --auto --squash "$PR_URL" + env: + PR_URL: ${{github.event.pull_request.html_url}} + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}