From 978be253ba8bbbda862ce0c4b20ccd6577326fcf Mon Sep 17 00:00:00 2001 From: MichaIng Date: Sun, 27 Mar 2022 18:36:09 +0200 Subject: [PATCH] ci(dependabot): Switch to latest fetch-metadata subversion (#190) possible now thanks to: https://github.com/dependabot/fetch-metadata/issues/180 Also remove redundant brace syntax from "if" statements, which are correctly evaluated automatically. Signed-off-by: MichaIng --- .github/workflows/dependabot-auto-merge.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dependabot-auto-merge.yml b/.github/workflows/dependabot-auto-merge.yml index 54b66739..bcc9558e 100644 --- a/.github/workflows/dependabot-auto-merge.yml +++ b/.github/workflows/dependabot-auto-merge.yml @@ -8,11 +8,11 @@ permissions: jobs: dependabot: runs-on: ubuntu-latest - if: ${{ github.actor == 'dependabot[bot]' }} + if: github.actor == 'dependabot[bot]' steps: - name: Dependabot metadata id: metadata - uses: dependabot/fetch-metadata@v1.3.0 + uses: dependabot/fetch-metadata@v1 with: github-token: ${{ secrets.GITHUB_TOKEN }} - name: Approve PR @@ -20,7 +20,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Enable auto-merge for non-major update PR - if: ${{steps.metadata.outputs.update-type != 'version-update:semver-major'}} + if: steps.metadata.outputs.update-type != 'version-update:semver-major' run: gh pr merge --auto --squash "${{ github.event.pull_request.html_url }}" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}