Skip to content

Commit

Permalink
ci: fix auto-merge workflow condition and execute test only on master
Browse files Browse the repository at this point in the history
  • Loading branch information
hbollon committed Sep 10, 2024
1 parent 26c642f commit 5f44b3c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dependabot_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ on:

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

steps:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Python unit tests

on:
push:
branches:
- master
pull_request:
workflow_call:

Expand Down

0 comments on commit 5f44b3c

Please sign in to comment.