Skip to content

Commit

Permalink
ci(dependabot): fix triggering condition and metadata step (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
hbollon authored Oct 14, 2024
1 parent d3a1536 commit 14183ae
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/dependabot_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,27 @@ on:
pull_request:
types:
- opened
- synchronize
- reopened
- labeled

permissions:
contents: write
pull-requests: write

jobs:
tests:
if: github.event.pull_request.user.login == 'dependabot[bot]' && contains(github.event.issue.labels.*.name, 'dependencies')
if: github.actor == 'dependabot[bot]' && contains(github.event.pull_request.labels.*.name, 'dependencies')
uses: ./.github/workflows/tests.yml
dependabot:
runs-on: ubuntu-latest
if: github.event.pull_request.user.login == 'dependabot[bot]' && contains(github.event.issue.labels.*.name, 'dependencies')
if: github.actor == 'dependabot[bot]' && contains(github.event.pull_request.labels.*.name, 'dependencies')
needs: [tests]

steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1.3.2
uses: dependabot/fetch-metadata@v2
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"

Expand Down

0 comments on commit 14183ae

Please sign in to comment.