Skip to content

Commit

Permalink
fix workflow pr.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
cht8687 committed Sep 2, 2023
1 parent a1a97b4 commit 5559a1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ jobs:
id: dependabot-metadata
uses: dependabot/fetch-metadata@v1.1.1
with:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Approve a PR
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Enable auto-merge for Dependabot PRs
if: ${{ steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major' }}
run: gh pr merge --auto --squash "$PR_URL"
Expand Down

0 comments on commit 5559a1c

Please sign in to comment.