From 101063093b2d6a9caef7cccadf57ba1b50be8e64 Mon Sep 17 00:00:00 2001 From: Mathieu David Date: Mon, 23 Mar 2020 13:22:12 +0100 Subject: [PATCH] Change CI badge to only push events (#1174) I noticed that the CI badge was failing and it seems to be caused by the fact that it reflects the latest build including PRs. This change filters the events to only "push events on the master branch" so the badge stays green even if a PR fails. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index abda2562..3c516e1a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # mdBook -[![Build Status](https://github.com/rust-lang/mdBook/workflows/CI/badge.svg)](https://github.com/rust-lang/mdBook/actions?workflow=CI) +[![Build Status](https://github.com/rust-lang/mdBook/workflows/CI/badge.svg?event=push)](https://github.com/rust-lang/mdBook/actions?workflow=CI) [![crates.io](https://img.shields.io/crates/v/mdbook.svg)](https://crates.io/crates/mdbook) [![LICENSE](https://img.shields.io/github/license/rust-lang/mdBook.svg)](LICENSE)