mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-27 00:21:01 -05:00
1870af5c5f
Updates the requirements on [actions/github-script](https://github.com/actions/github-script) to permit the latest version.
- [Release notes](https://github.com/actions/github-script/releases)
- [Commits](6e5ee1dc1c
)
Signed-off-by: dependabot[bot] <support@github.com>
47 lines
1.3 KiB
YAML
47 lines
1.3 KiB
YAML
---
|
|
#######################################
|
|
#######################################
|
|
## 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@v2
|
|
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}}
|