mirror of
https://github.com/long2ice/fastapi-cache.git
synced 2026-03-24 20:47:54 +00:00
CI: don't run this workflow twice on a PR
If a maintainer pushes to a PR, the workflow push and pull_request events both trigger. Limit the workflow to the main branch, explicitly.
This commit is contained in:
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
@@ -1,5 +1,12 @@
|
||||
name: ci
|
||||
on: [ push, pull_request ]
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
ci:
|
||||
strategy:
|
||||
|
||||
Reference in New Issue
Block a user