Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

COMN-378: Don’t use RosetteTextAnalytics/reusable-workflows #3

COMN-378: Don’t use RosetteTextAnalytics/reusable-workflows

COMN-378: Don’t use RosetteTextAnalytics/reusable-workflows #3

name: Dependabot automerge
on: pull_request
jobs:
dependabot:
runs-on: ubuntu-latest
if: github.event.pull_request.user.login == 'dependabot[bot]'
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/[email protected]
- name: Approve a PR
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}