From 41d8d6869ac1461f25e265aedbb6b15385636545 Mon Sep 17 00:00:00 2001 From: RAYemelyanova <90774497+RAYemelyanova@users.noreply.github.com> Date: Tue, 29 Nov 2022 14:50:38 +0000 Subject: [PATCH] added dependabot config, and workflow to rebase dependencies branch onto which dependabot will open PRs (#136) --- .github/dependabot.yml | 3 ++- .github/workflows/rebase-dependencies.yml | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/rebase-dependencies.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 1eeb11a..757c27d 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -14,4 +14,5 @@ updates: directory: "/" schedule: interval: "weekly" - open-pull-requests-limit: 100 \ No newline at end of file + open-pull-requests-limit: 100 + target-branch: "dependencies" \ No newline at end of file diff --git a/.github/workflows/rebase-dependencies.yml b/.github/workflows/rebase-dependencies.yml new file mode 100644 index 0000000..5afe074 --- /dev/null +++ b/.github/workflows/rebase-dependencies.yml @@ -0,0 +1,19 @@ +name: Automatic Rebase +on: + push: + branches: + - master +jobs: + rebase: + name: Rebase `dependencies` with `master` + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 # otherwise, you will fail to push refs to dest repo + ref: dependencies + - run: | + git config user.name github-actions + git config user.email github-actions@github.com + git rebase origin/master + git push origin dependencies --force \ No newline at end of file