mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
* Auto merge all WPT and dependabot PRs Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> * Adjust name of action Signed-off-by: Martin Robinson <mrobinson@igalia.com> --------- Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> Signed-off-by: Martin Robinson <mrobinson@igalia.com> Co-authored-by: Martin Robinson <mrobinson@igalia.com>
18 lines
523 B
YAML
18 lines
523 B
YAML
name: Automerge Dependabot & WPT Updates
|
|
on: pull_request
|
|
|
|
permissions:
|
|
pull-requests: read
|
|
|
|
jobs:
|
|
auto-merge:
|
|
runs-on: ubuntu-latest
|
|
if: ${{ github.actor == 'dependabot[bot]' || github.actor == 'servo-wpt-sync' }}
|
|
steps:
|
|
- name: Approve the PR & enable auto-merge
|
|
run: |
|
|
gh pr review --approve "$PR_URL"
|
|
gh pr merge --auto --merge "$PR_URL"
|
|
env:
|
|
PR_URL: ${{ github.event.pull_request.html_url }}
|
|
GH_TOKEN: ${{ secrets.SERVO_DEPENDABOT_TOKEN }}
|