mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-24 00:36:14 -04:00
chore(ci): added dependabot auto merge
This commit is contained in:
parent
29891e0f0d
commit
a5e3303bc8
1 changed files with 30 additions and 0 deletions
30
.github/workflows/dependabot-merge.yml
vendored
Normal file
30
.github/workflows/dependabot-merge.yml
vendored
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
on:
|
||||||
|
workflow_run:
|
||||||
|
workflows: [ci]
|
||||||
|
branches-ignore: [main]
|
||||||
|
types:
|
||||||
|
- completed
|
||||||
|
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
on-success:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: >
|
||||||
|
github.event.workflow_run.conclusion == 'success' &&
|
||||||
|
github.actor == 'dependabot[bot]'
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: "Merge pull request"
|
||||||
|
uses: ridedott/merge-me-action@v2
|
||||||
|
with:
|
||||||
|
# Depending on branch protection rules, a manually populated
|
||||||
|
# `GITHUB_TOKEN_WORKAROUND` secret with permissions to push to
|
||||||
|
# a protected branch must be used. This secret can have an arbitrary
|
||||||
|
# name, as an example, this repository uses `DOTTBOTT_TOKEN`.
|
||||||
|
#
|
||||||
|
# When using a custom token, it is recommended to leave the following
|
||||||
|
# comment for other developers to be aware of the reasoning behind it:
|
||||||
|
#
|
||||||
|
# This must be used as GitHub Actions token does not support pushing
|
||||||
|
# to protected branches.
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
Loading…
Add table
Add a link
Reference in a new issue