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.
This commit is contained in:
Sylvain 2022-12-14 15:23:43 +01:00 committed by GitHub
parent 50d5d98163
commit 1db0a52e3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]