Skip to content

Commit

Permalink
fix(ci): lint run twice on pull request (#31)
Browse files Browse the repository at this point in the history
on: [push, pull_request] 导致在 pull request 上推送 commit 时会同时触发两条 workflow
  • Loading branch information
Snoopy1866 authored Sep 23, 2024
1 parent fc8121a commit 6c6f904
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/black.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: Lint

on: [push, pull_request]
on:
push:
branches:
- "main"
pull_request:
types: [opened, synchronize, reopened]

jobs:
lint:
Expand Down

0 comments on commit 6c6f904

Please sign in to comment.