diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..52c1ab6e --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,18 @@ +# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/dependabot-options-reference +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" + time: "00:00" + labels: + - "ci" + - "skip-changelog" + pull-request-branch-name: + separator: "-" + open-pull-requests-limit: 10 + reviewers: + - "akihironitta" + assignees: + - "akihironitta" diff --git a/.github/workflows/dependabot-auto-merge.yml b/.github/workflows/dependabot-auto-merge.yml new file mode 100644 index 00000000..51bf9bd3 --- /dev/null +++ b/.github/workflows/dependabot-auto-merge.yml @@ -0,0 +1,21 @@ +name: Dependabot auto-merge + +on: # yamllint disable-line rule:truthy + pull_request: + branches: + - master + +permissions: + contents: write + pull-requests: write + +jobs: + dependabot: + runs-on: ubuntu-latest + if: ${{ github.actor == 'dependabot[bot]' }} + steps: + - name: Enable auto-merge for Dependabot PRs + run: gh pr merge --auto --merge "$PR_URL" + env: + PR_URL: ${{github.event.pull_request.html_url}} + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}