From 1b6d6156a1f32e8c9f3d5e4ee601941d17afa3c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Wed, 16 Oct 2024 20:49:19 +0200 Subject: [PATCH] update workflow --- .github/workflows/auto-approve.yml | 2 ++ .github/workflows/auto-merge.yml | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/auto-approve.yml b/.github/workflows/auto-approve.yml index 357386e..06d1d03 100644 --- a/.github/workflows/auto-approve.yml +++ b/.github/workflows/auto-approve.yml @@ -15,6 +15,8 @@ jobs: auto-approve: runs-on: "ubuntu-24.04" + if: ${{ github.actor == 'dependabot[bot]' }} + steps: - name: "Dependabot metadata" id: "metadata" diff --git a/.github/workflows/auto-merge.yml b/.github/workflows/auto-merge.yml index 8db46bc..2116354 100644 --- a/.github/workflows/auto-merge.yml +++ b/.github/workflows/auto-merge.yml @@ -15,6 +15,8 @@ jobs: automerge: runs-on: "ubuntu-24.04" + if: ${{ github.actor == 'dependabot[bot]' }} + steps: - name: "Dependabot metadata" id: "metadata" @@ -34,7 +36,7 @@ jobs: run: echo ${{ steps.metadata.outputs.update-type }} - name: "Enable auto-merge for Dependabot PRs" - if: ${{ github.actor == 'dependabot[bot]' && ( steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch' ) }} + if: ${{ steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch' }} run: gh pr merge --auto --merge "$PR_URL" env: PR_URL: "${{ inputs.pullRequestUrl }}"