Skip to content

Merge dependency updates #388

Merge dependency updates

Merge dependency updates #388

Workflow file for this run

name: Merge dependency updates
on:
workflow_run:
types:
- "completed"
workflows:
- "Acquia PHP SDK v2 build and test"
jobs:
merge:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
if: >-
github.event.workflow_run.event == 'pull_request' &&
github.event.workflow_run.conclusion == 'success' &&
github.event.workflow_run.actor.login == 'dependabot[bot]'
steps:
- name: "Get PR information"
uses: potiuk/get-workflow-origin@v1_3
id: source-run-info
with:
token: ${{ secrets.GITHUB_TOKEN }}
sourceRunId: ${{ github.event.workflow_run.id }}
- run: 'gh pr merge --squash https://github.com/$GITHUB_REPOSITORY/pull/$GITHUB_PR'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_PR: ${{ steps.source-run-info.outputs.pullRequestNumber }}