mirror of
https://github.com/amtoaer/bili-sync.git
synced 2026-09-05 15:39:07 +08:00
ci: 对处于 draft 状态的 PR 禁用 workflow (#123)
This commit is contained in:
@@ -5,8 +5,7 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
types: ['opened', 'reopened', 'synchronize', 'ready_for_review']
|
||||||
- "**"
|
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
# Allow only one workflow per any non-`main` branch.
|
# Allow only one workflow per any non-`main` branch.
|
||||||
@@ -22,6 +21,7 @@ jobs:
|
|||||||
tests:
|
tests:
|
||||||
name: Run Clippy and tests
|
name: Run Clippy and tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|||||||
Reference in New Issue
Block a user