Skip to content

Commit

Permalink
Merge pull request #274 from HuangFuSL/ci-automerge
Browse files Browse the repository at this point in the history
Fix: dependabot trigger workflow twice
  • Loading branch information
github-actions[bot] authored Nov 25, 2023
2 parents ad3f796 + 24ca801 commit fa6929f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ jobs:
dependencies:
name: Update dependencies
if: >-
contains(github.event.pull_request.labels.*.name, 'ready') == true ||
contains(github.event.pull_request.labels.*.name, 'dependencies') == true
(github.event.label.name == 'ready' ||
github.event.label.name == 'dependencies') &&
! (contains(github.event.pull_request.labels.*.name, 'dependencies') &&
contains(github.event.pull_request.labels.*.name, 'ready'))
runs-on: self-hosted
permissions:
contents: write
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ on:
jobs:
test:
name: Test documentation
if: contains(github.event.pull_request.labels.*.name, 'ready') == true
if: >-
github.event.label.name == 'ready' &&
! contains(github.event.pull_request.labels.*.name, 'ready')
runs-on: self-hosted
steps:
- name: Checkout head
Expand Down

0 comments on commit fa6929f

Please sign in to comment.