mirror of
https://github.com/servo/servo
synced 2026-04-25 17:15:48 +02:00
Auto merge all WPT and dependabot PRs (#32775)
* 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>
This commit is contained in:
18
.github/workflows/auto-merge-updates.yml
vendored
Normal file
18
.github/workflows/auto-merge-updates.yml
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
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 }}
|
||||
22
.github/workflows/dependabot-pr.yml
vendored
22
.github/workflows/dependabot-pr.yml
vendored
@@ -1,22 +0,0 @@
|
||||
name: Approve & merge successful dependabot patch upgrade PRs
|
||||
on: pull_request
|
||||
|
||||
permissions:
|
||||
pull-requests: read
|
||||
|
||||
jobs:
|
||||
dependabot:
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ github.actor == 'dependabot[bot]' }}
|
||||
steps:
|
||||
- name: Dependabot metadata
|
||||
id: metadata
|
||||
uses: dependabot/fetch-metadata@v1
|
||||
- name: Approve the PR & enable auto-merge
|
||||
if: ${{ steps.metadata.outputs.update-type == 'version-update:semver-patch' }}
|
||||
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}}
|
||||
Reference in New Issue
Block a user