Files
runner-images/.github/workflows/merge_pull_request.yml
Vladimir Safonkin ba79bba9d5 Add workflows to create software PRs and GitHub releases (#1123)
* Add workflows to create software PR and release

* Fix job names

* Minor fix

* Rework workflows
2020-07-01 16:32:10 +03:00

24 lines
564 B
YAML

name: Merge pull request
on:
repository_dispatch:
types: [merge-pr]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Merge pull request for ${{ github.event.client_payload.ReleaseBranchName }}
uses: actions/github-script@v2
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.pulls.merge({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: ${{ github.event.client_payload.PullRequestNumber }}
})