From 7e14a1ee743096bde53d233b81f414041cb3a2fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=9E=8D=E9=9B=AA=E6=97=B6=E5=88=86?= Date: Sun, 4 Aug 2024 01:03:09 +0800 Subject: [PATCH] try dependabot --- .github/workflows/auto-merge.yml | 20 ++++++++++++++++++++ .github/workflows/dependabot.yml | 14 ++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 .github/workflows/auto-merge.yml create mode 100644 .github/workflows/dependabot.yml diff --git a/.github/workflows/auto-merge.yml b/.github/workflows/auto-merge.yml new file mode 100644 index 0000000..13435ec --- /dev/null +++ b/.github/workflows/auto-merge.yml @@ -0,0 +1,20 @@ +name: Auto-merge PRs + +on: + pull_request: + branches: [ hotfix ] + +permissions: + pull-requests: write + contents: write + +jobs: + automerge: + runs-on: ubuntu-latest + if: github.actor == 'cuteday' + steps: + - uses: peter-evans/enable-pull-request-automerge@v3 + with: + token: ${{ secrets.DEPENDABOT_TOKEN }} + pull-request-number: ${{ github.event.pull_request.number }} + merge-method: squash \ No newline at end of file diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot.yml new file mode 100644 index 0000000..b135516 --- /dev/null +++ b/.github/workflows/dependabot.yml @@ -0,0 +1,14 @@ +name: auto-merge + +on: + pull_request: + +jobs: + auto-merge: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: ahmadnassri/action-dependabot-auto-merge@v2 + with: + target: minor + github-token: ${{ secrets.DEPENDABOT_TOKEN }} \ No newline at end of file