Skip to content

Commit

Permalink
ci: 对处于 draft 状态的 PR 禁用 workflow (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
amtoaer authored Jun 27, 2024
1 parent 4818e62 commit 6ebef0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ on:
branches:
- main
pull_request:
branches:
- "**"
types: ['opened', 'reopened', 'synchronize', 'ready_for_review']

concurrency:
# Allow only one workflow per any non-`main` branch.
Expand All @@ -22,6 +21,7 @@ jobs:
tests:
name: Run Clippy and tests
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
Expand Down

0 comments on commit 6ebef0a

Please sign in to comment.