From fd3ace23860a51d142315d7523ed64eae6b78442 Mon Sep 17 00:00:00 2001 From: Peter Evans <18365890+peter-evans@users.noreply.github.com> Date: Fri, 9 Dec 2022 16:16:59 +0900 Subject: [PATCH] ci: update workflows --- .github/dependabot.yml | 8 ++++---- .github/workflows/automerge-dependabot.yml | 13 +++++++++++++ .github/workflows/ci.yml | 1 + 3 files changed, 18 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/automerge-dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 790e166..d8e0a26 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -3,13 +3,13 @@ updates: - package-ecosystem: "github-actions" directory: "/" schedule: - interval: "weekly" + interval: "monthly" labels: - "dependencies" - package-ecosystem: "npm" directory: "/" schedule: - interval: "weekly" - allow: - - dependency-name: "@actions/*" + interval: "monthly" + labels: + - "dependencies" diff --git a/.github/workflows/automerge-dependabot.yml b/.github/workflows/automerge-dependabot.yml new file mode 100644 index 0000000..cbaeef9 --- /dev/null +++ b/.github/workflows/automerge-dependabot.yml @@ -0,0 +1,13 @@ +name: Auto-merge Dependabot +on: pull_request + +jobs: + automerge: + runs-on: ubuntu-latest + if: github.actor == 'dependabot[bot]' + steps: + - uses: peter-evans/enable-pull-request-automerge@v2 + with: + token: ${{ secrets.ACTIONS_BOT_TOKEN }} + pull-request-number: ${{ github.event.pull_request.number }} + merge-method: squash diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a2a318e..fca134c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -94,6 +94,7 @@ jobs: - name: Create Pull Request uses: peter-evans/create-pull-request@v4 with: + token: ${{ secrets.ACTIONS_BOT_TOKEN }} commit-message: 'build: update distribution' title: Update distribution body: |