Dependabot Merge #2945
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/[email protected] | |
with: | |
github-token: ${{ secrets.PAT }} | |
target: minor | |
pr-number: ${{ env.PR_NUMBER }} | |
merge-method: merge |