Skip to content

Commit

Permalink
ci: Only run dependabot job for Python update. (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
huxuan committed Sep 19, 2023
1 parent b1f9637 commit 5b34fa8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Expand Up @@ -54,7 +54,7 @@ jobs:
- run: git status --porcelain
- run: test -z "$(git status --porcelain)"
dependabot:
if: ${{ github.actor == 'dependabot[bot]' }}
if: ${{ github.actor == 'dependabot[bot]' && startsWith(github.head_ref, 'dependabot/pip/') }}
permissions:
contents: write
runs-on: ubuntu-latest
Expand Down
Expand Up @@ -65,7 +65,7 @@ jobs:
- run: test -z "$(git status --porcelain)"
[%- endif %]
dependabot:
if: {{ '${{ github.actor == \'dependabot[bot]\' }}' }}
if: {{ '${{ github.actor == \'dependabot[bot]\' && startsWith(github.head_ref, \'dependabot/pip/\') }}' }}
permissions:
contents: write
runs-on: ubuntu-latest
Expand Down

0 comments on commit 5b34fa8

Please sign in to comment.