mirror of
https://github.com/super-linter/super-linter.git
synced 2024-12-22 12:42:09 -05:00
Merge pull request #447 from github/AutomergeDeps
Automerge Dependabot dependencies
This commit is contained in:
commit
a23aeef139
1 changed files with 47 additions and 0 deletions
47
.github/workflows/automerge-dependabot.yml
vendored
Normal file
47
.github/workflows/automerge-dependabot.yml
vendored
Normal file
|
@ -0,0 +1,47 @@
|
|||
---
|
||||
#######################################
|
||||
#######################################
|
||||
## Dependabot automerge dependencies ##
|
||||
#######################################
|
||||
#######################################
|
||||
|
||||
#
|
||||
# Documentation:
|
||||
# https://medium.com/@toufik.airane/automerge-github-dependabot-alerts-with-github-actions-7cd6f5763750
|
||||
#
|
||||
|
||||
######################
|
||||
# name of the action #
|
||||
######################
|
||||
name: automerge on pull request
|
||||
|
||||
###############
|
||||
# When to run #
|
||||
###############
|
||||
on: [pull_request]
|
||||
|
||||
#################
|
||||
# Start the job #
|
||||
#################
|
||||
jobs:
|
||||
automerge:
|
||||
name: automerge dependabot
|
||||
runs-on: ubuntu-latest
|
||||
if: github.actor == 'dependabot[bot]'
|
||||
steps:
|
||||
- name: merge
|
||||
uses: actions/github-script@0.2.0
|
||||
with:
|
||||
script: |
|
||||
github.pullRequests.createReview({
|
||||
owner: context.payload.repository.owner.login,
|
||||
repo: context.payload.repository.name,
|
||||
pull_number: context.payload.pull_request.number,
|
||||
event: 'APPROVE'
|
||||
})
|
||||
github.pullRequests.merge({
|
||||
owner: context.payload.repository.owner.login,
|
||||
repo: context.payload.repository.name,
|
||||
pull_number: context.payload.pull_request.number
|
||||
})
|
||||
github-token: ${{github.token}}
|
Loading…
Reference in a new issue