Automate merging of dependabot PRs to dep branch (#3857)

* add auto sync and merge workflows

* misc update

---------

Co-authored-by: sandeep <8293321+ehsandeep@users.noreply.github.com>
dev
Dogan Can Bakir 2023-07-12 02:54:55 +03:00 committed by GitHub
parent 7eadcf7615
commit 880adc4405
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 58 additions and 3 deletions

View File

@ -11,7 +11,7 @@ updates:
directory: "/"
schedule:
interval: "weekly"
target-branch: "dev"
target-branch: "dep"
commit-message:
prefix: "chore"
include: "scope"
@ -23,7 +23,7 @@ updates:
directory: "v2/"
schedule:
interval: "weekly"
target-branch: "dev"
target-branch: "dep"
commit-message:
prefix: "chore"
include: "scope"
@ -35,7 +35,7 @@ updates:
directory: "/"
schedule:
interval: "weekly"
target-branch: "dev"
target-branch: "dep"
commit-message:
prefix: "chore"
include: "scope"

25
.github/workflows/auto-merge.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: 🤖 dep auto merge
on:
pull_request:
branches:
- dep
workflow_dispatch:
permissions:
pull-requests: write
issues: write
repository-projects: write
jobs:
automerge:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.DEPENDABOT_PAT }}
- uses: ahmadnassri/action-dependabot-auto-merge@v2
with:
github-token: ${{ secrets.DEPENDABOT_PAT }}
target: all

30
.github/workflows/sync-dep.yml vendored Normal file
View File

@ -0,0 +1,30 @@
name: 🤖 sync dep
on:
push:
branches:
- dev
permissions:
pull-requests: write
issues: write
repository-projects: write
jobs:
sync-dep-with-dev:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 12
- name: Opening pull request
id: pull
uses: tretuna/sync-branches@1.4.0
with:
GITHUB_TOKEN: ${{ secrets.DEPENDABOT_PAT }}
FROM_BRANCH: "${{ github.ref_name }}"
TO_BRANCH: "dep"