-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 939 Bytes
/
auto-merge.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: auto-merge
on:
pull_request:
types:
- opened
- synchronize
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
enable-auto-merge:
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
checks: write
pull-requests: write
repository-projects: write
if: ${{ github.actor_id == '49699333' }} # "dependabot[bot]"
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: enable auto-merge
if: ${{ steps.metadata.outputs.package-ecosystem != 'submodules' }} # disable Glyph SDK update
shell: bash
run:
gh pr merge --auto --squash "${{ github.event.pull_request.html_url }}"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}