Dispatch github ci jobs after running update-vrt workflow (#5586)

* Enhance CI workflows to support repository dispatch events and improve branch handling

- Added support for `repository_dispatch` events in build, check, and codeql workflows.
- Updated concurrency group to include `client_payload.pr_number` for better context.
- Modified checkout steps to reference the correct branch from `client_payload` if available.

* Add release notes for PR #5586

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Matiss Janis Aboltins
2025-08-20 21:12:16 +01:00
committed by GitHub
parent 91a8bc3ef1
commit 3a8eb96d76
5 changed files with 47 additions and 3 deletions

View File

@@ -4,11 +4,13 @@ on:
push:
branches: [master]
pull_request:
repository_dispatch:
types: [vrt_updated]
schedule:
- cron: '23 11 * * 6'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.event.client_payload.pr_number || github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
jobs:
@@ -23,6 +25,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ github.event.client_payload.branch || github.ref }}
- name: Initialize CodeQL
uses: github/codeql-action/init@v3