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 }}"