Skip to content

Commit

Permalink
ci(dependabot): Switch to latest fetch-metadata subversion (#190)
Browse files Browse the repository at this point in the history
possible now thanks to: dependabot/fetch-metadata#180

Also remove redundant brace syntax from "if" statements, which are correctly evaluated automatically.

Signed-off-by: MichaIng <[email protected]>
  • Loading branch information
MichaIng authored Mar 27, 2022
1 parent 64eb75d commit 978be25
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ 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
run: gh pr review --approve "${{ github.event.pull_request.html_url }}"
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 }}

0 comments on commit 978be25

Please sign in to comment.