Skip to content

Dependabot Merge

Dependabot Merge #2997

name: Dependabot Merge
on:
workflow_run:
workflows: [ "Tests" ]
types: [ "completed" ]
jobs:
approve-and-merge:
name: Approve and Merge
runs-on: ubuntu-latest
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success'
concurrency:
group: ukcp-api-dependabot-auto-merge
steps:
- name: Download Pull Request Number
uses: dawidd6/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
workflow: test.yml
run_id: ${{ github.event.workflow_run.id }}
name: pr-number
- name: Set Pull Request Number
run: |
NUM=$(cat ./pr_number.txt)
echo "PR_NUMBER=$NUM" >> $GITHUB_ENV
- name: Merge Dependabot
uses: fastify/github-action-merge-dependabot@v3
with:
github-token: ${{ secrets.PAT }}
target: minor
pr-number: ${{ env.PR_NUMBER }}
merge-method: merge