From 1db0a52e3cdf94891c87ffeb5f8766b4bf18bc7b Mon Sep 17 00:00:00 2001 From: Sylvain <59280694+sylvain-combe-sonarsource@users.noreply.github.com> Date: Wed, 14 Dec 2022 15:23:43 +0100 Subject: [PATCH] Update README.md Yaml file snippet Users unfamiliar with GitHub actions just copy the pipeline snippets and wonder why the analysis does not trigger. Let's make sure it does by adding "main" and "develop" branch names by default. --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0b9265f..ae08816 100644 --- a/README.md +++ b/README.md @@ -28,11 +28,13 @@ The workflow YAML file will usually look something like this: ```yaml on: - # Trigger analysis when pushing in master or pull requests, and when creating - # a pull request. + # Trigger analysis when pushing to your main branches, and when creating a pull request. push: branches: + - main - master + - develop + - 'releases/**' pull_request: types: [opened, synchronize, reopened]