Skip to content

chore: bump peter-evans/slash-command-dispatch from 4.0.0 to 5.0.0 in the github-actions group #8

chore: bump peter-evans/slash-command-dispatch from 4.0.0 to 5.0.0 in the github-actions group

chore: bump peter-evans/slash-command-dispatch from 4.0.0 to 5.0.0 in the github-actions group #8

name: Dependabot Automation
on: pull_request_target
permissions: {}
jobs:
dependabot:
runs-on: ubuntu-latest
if: |
github.event.pull_request.user.login == 'dependabot[bot]' &&
github.repository_owner == 'epam'
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@08eff52bf64351f401fb50d4972fa95b9f2c2d1b # v2.4.0
- name: Approve PR
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.ACTIONS_BOT_TOKEN }}
- name: Merge PR
if: |
steps.metadata.outputs.dependency-group == 'ai-dial-ci' &&
steps.metadata.outputs.update-type != 'version-update:semver-major'
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.ACTIONS_BOT_TOKEN }}