ci: avoid duplicate builds for PR commits

This commit is contained in:
Cotes Chung 2024-04-14 04:16:15 +08:00
parent 9f8aeaadbf
commit 7d48d32c7b
No known key found for this signature in database
GPG key ID: 0D9E54843167A808

View file

@ -1,9 +1,8 @@
name: "CI" name: "CI"
on: on:
push: push:
branches-ignore: branches:
- "production" - "master"
- "docs"
paths-ignore: paths-ignore:
- ".github/**" - ".github/**"
- "!.github/workflows/ci.yml" - "!.github/workflows/ci.yml"
@ -12,8 +11,6 @@ on:
- "README.md" - "README.md"
- "LICENSE" - "LICENSE"
pull_request: pull_request:
paths:
- "**"
jobs: jobs:
build: build: