Skip to content

Commit

Permalink
minor fix on dependabot reviewer (#1286)
Browse files Browse the repository at this point in the history
  • Loading branch information
wirednkod authored Aug 26, 2023
1 parent b64e656 commit 923c10d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/dependabot-reviewer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,16 @@ jobs:
- name: Dependabot metadata
id: dependabot-metadata
uses: dependabot/fetch-metadata@v1
with:
github-token: "${{secrets.DEPENDABOT_TOKEN}}"
- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.ZOMBIENET_GITHUB_TOKEN}}
github-token: ${{secrets.DEPENDABOT_TOKEN}}
- name: Approve patch updates
if: ${{steps.dependabot-metadata.outputs.update-type == 'version-update:semver-patch'}}
run: gh pr review $PR_URL --approve -b "I'm **approving** this pull request because **it includes a patch update**"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.ZOMBIENET_GITHUB_TOKEN}}
github-token: ${{secrets.DEPENDABOT_TOKEN}}

0 comments on commit 923c10d

Please sign in to comment.