Skip to content

Dependabot Merge

Dependabot Merge #2861

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/action-download-artifact@v2.11.0
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.0.0
with:
github-token: ${{ secrets.PAT }}
target: minor
pr-number: ${{ env.PR_NUMBER }}
merge-method: merge