All Downloads are FREE. Search and download functionalities are using the official Maven repository.

github.workflows.pr-auto-approve.yml Maven / Gradle / Ivy

Go to download

Resources, like Checkstyle rules and site templates, for FreeLibrary projects.

There is a newer version: 12.0.2
Show newest version
name: PR Auto-Approver

# Auto-approve on projects that have a "secret" variable saying this is okay. This lets us set up a restricted PR
# process on projects with just a single active developer. It prevents the developer from pushing directly to the
# main branch (so enforces a particular workflow that our other GitHub Actions expect).
on:
  pull_request:
    branches:
      - main

jobs:
  approve-pr:
    name: PR Auto-Approver
    runs-on: ubuntu-latest
    env:
      AUTO_PR_APPROVAL: ${{ secrets.AUTO_PR_APPROVAL }}
    steps:
    - uses: hmarr/auto-approve-action@7782c7e2bdf62b4d79bdcded8332808fd2f179cd # v2.0.0
      if: env.AUTO_PR_APPROVAL == 'true'
      with:
        github-token: "${{ secrets.GITHUB_TOKEN }}"




© 2015 - 2024 Weber Informatics LLC | Privacy Policy