CI: add some comments to CI-workflow about intended jobs generation strategy. (#50114)

This commit is contained in:
Vladimir Reznichenko 2024-07-31 08:46:55 +02:00 committed by GitHub
parent 5ffad9a659
commit 4b90743ada
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -48,6 +48,9 @@ jobs:
id: 'project-jobs'
with:
script: |
// Intended behaviour of the jobs generation:
// - PRs: run CI jobs aiming PRs and filter out jobs based on the content changes
// - Pushes: run CI jobs aiming pushes without filtering based on the content changes
let baseRef = ${{ toJson( github.base_ref ) }};
if ( baseRef ) {
baseRef = `--base-ref origin/${ baseRef }`;