Skip to content

Commit

Permalink
feat: add workflow updates
Browse files Browse the repository at this point in the history
  • Loading branch information
palashmon authored Apr 19, 2024
1 parent f28ab8c commit 5266f62
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions .github/workflows/auto-approve.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,7 @@
name: Auto-approve Renovate's PRs

name: Auto-approve PR
on: pull_request_target

permissions:
contents: write
pull-requests: write

jobs:
auto-approve-renovate-prs:
runs-on: ubuntu-latest
steps:
- name: Git Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: '0'
- name: Approve PR
if: github.actor == 'renovate[bot]'
run: gh pr review --approve ${{ github.event.number }}
env:
GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
auto-approve:
uses: palashmon/reusable-workflows/.github/workflows/auto-approve.yml@main

0 comments on commit 5266f62

Please sign in to comment.