Skip to content

Commit

Permalink
revert approval to approve
Browse files Browse the repository at this point in the history
  • Loading branch information
marshacb committed Sep 13, 2023
1 parent b357ad8 commit 03d3dfc
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 27 deletions.
27 changes: 0 additions & 27 deletions .github/workflows/approval.yml

This file was deleted.

50 changes: 50 additions & 0 deletions .github/workflows/approve.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: approve

on:
pull_request:
branches:
- main
types:
- opened
- edited
- synchronize
pull_request_target:
types:
- opened
- edited
- synchronize

jobs:
commit-changes:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write

steps:
- run: echo actor is ${{github.actor}}

- name: add automerge label
uses: actions-ecosystem/action-add-labels@v1
with:
labels: automerge

- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Automated Registry Update
file_pattern: '*.json'
disable_globbing: true

auto-approve:
name: 'Auto Approve PR'
runs-on: ubuntu-latest
needs: commit-changes
permissions:
pull-requests: write
if: github.actor == 'dependabot[bot]' || github.actor == 'TarikGul' || github.actor == 'marshacb'
steps:
- run: echo github actor is ${{github.actor}}
- uses: hmarr/auto-approve-action@v3
with:
review-message: 'Auto approved PR'
github-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 03d3dfc

Please sign in to comment.