Skip to content

brianespinosa/actions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

brianespinosa/actions

Reusable GitHub workflows

See GitHub's "Reusing Workflows" documentation for more information on how to reduce duplication and reuse workflows between repositories.

Available Workflows

This action will add one approval to a PR and will mark it to auto-merge for any PRs that have been opened by the Dependabot user.

This requires:

  1. Branch protection to be set on the main branch with some level of CI
  2. Repository enabled with auto-merge functionality
  3. Elevated permissions from the calling workflow
  4. Needs to pass secrets: inherit to the job for the GITHUB_TOKEN

Usage

name: Dependabot PRs

on: pull_request_target

jobs:
  dependabot-pr-review:
    permissions:
      pull-requests: write
      contents: write
    uses: brianespinosa/actions/.github/workflows/dependabot-pr-review.yml@main
    secrets: inherit

This action will run lint with the fix flag and commit/push the changes for any PRs that have been opened by the Dependabot user. It is intended to be used with the above dependabot-pr-review action on NX repositories that use the @nx/dependency-checks lint rule for buildable/publishable packages.

This requires:

  1. Elevated permissions from the calling workflow
  2. Needs to pass secrets: inherit to the job for the GITHUB_TOKEN

Usage

name: Dependabot PRs

on: pull_request_target

jobs:
  dependabot-pr-review:
    permissions:
      pull-requests: write
      contents: write
    uses: brianespinosa/actions/.github/workflows/dependabot-pr-review.yml@main
    secrets: inherit

  dependabot-pr-nx-lint-fix:
    needs: dependabot-pr-review
    permissions:
      pull-requests: write
      contents: write
    uses: brianespinosa/actions/.github/workflows/dependabot-pr-nx-lint-fix.yml@main
    secrets: inherit

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published