Skip to content

Commit

Permalink
Add action to assign label "dev-dependencies" to Dependabot PR's
Browse files Browse the repository at this point in the history
  • Loading branch information
Borewit committed Jan 5, 2023
1 parent 42791d0 commit 1be603e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/post-dependabot-prs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Dependabot Pull Request
on: pull_request_target
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Fetch Dependabot metadata
id: dependabot-metadata
uses: dependabot/fetch-metadata@v1
with:
alert-lookup: true
compat-lookup: true
github-token: "${{ secrets.PAT_TOKEN }}"
- name: Set label
uses: actions-ecosystem/action-add-labels@v1
if: ${{ steps.dependabot-metadata.outputs.dependency-type == 'direct:development' }}
with:
labels: dev-dependencies

0 comments on commit 1be603e

Please sign in to comment.