-
-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (34 loc) · 813 Bytes
/
main.yml
File metadata and controls
34 lines (34 loc) · 813 Bytes
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
name: Main
on:
- push
- pull_request_target
jobs:
ci:
name: CI
runs-on: ubuntu-latest
env:
CI: true
steps:
- uses: actions/checkout@master
with:
submodules: recursive
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: '3.1'
- name: Test
run: bundle exec rake test
automerge:
name: AutoMerge
needs: ci
runs-on: ubuntu-latest
if: github.event_name == 'pull_request_target' && github.actor == 'dependabot[bot]'
steps:
- uses: actions/github-script@v3
with:
script: |
github.pulls.merge({
owner: context.payload.repository.owner.login,
repo: context.payload.repository.name,
pull_number: context.payload.pull_request.number
})