Skip to content

Commit

Permalink
refactor dependabot job
Browse files Browse the repository at this point in the history
  • Loading branch information
sgalsaleh committed Jan 2, 2024
1 parent c3ae973 commit ab28ebd
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3954,11 +3954,9 @@ jobs:
needs: [ validate-success ]
if: github.actor == 'dependabot[bot]'
steps:
- name: Approve PR
run: gh pr review --approve ${{ github.event.pull_request.html_url }} --comment "LGTM :thumbsup:"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Merge PR
run: gh pr merge --auto --squash ${{ github.event.pull_request.html_url }}
- name: Approve & Merge PR
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh pr review --approve ${{ github.event.pull_request.html_url }} --comment "LGTM :thumbsup:"
gh pr merge --auto --squash ${{ github.event.pull_request.html_url }}

0 comments on commit ab28ebd

Please sign in to comment.