summaryrefslogtreecommitdiff
path: root/.github/workflows/autobot.yaml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/autobot.yaml')
-rw-r--r--.github/workflows/autobot.yaml10
1 files changed, 6 insertions, 4 deletions
diff --git a/.github/workflows/autobot.yaml b/.github/workflows/autobot.yaml
index 450e5d2..4e74d0a 100644
--- a/.github/workflows/autobot.yaml
+++ b/.github/workflows/autobot.yaml
@@ -4,23 +4,25 @@ on: pull_request
jobs:
automerge:
+ name: Check and merge PR
+ if: github.actor == 'dependabot[bot]'
+
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
- if: github.actor == 'dependabot[bot]'
-
steps:
- - uses: dependabot/fetch-metadata@v2
+ - name: Fetch metadata
+ uses: dependabot/fetch-metadata@v2
id: metadata
with:
github-token: ${{ github.token }}
- name: Enable auto-merge
if: steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor'
- run: gh pr merge --auto --rebase "$PR"
+ run: gh pr merge --auto --squash "$PR"
env:
GH_TOKEN: ${{ github.token }}
PR: ${{ github.event.pull_request.html_url }}