Skip to content

Commit c3d5996

Browse files
committed
Refs #21286: Add check to use different sources
signed-off-by: JesusPoderoso <[email protected]>
1 parent 879ff11 commit c3d5996

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ jobs:
4343
- name: Checkout repository
4444
uses: actions/checkout@v4
4545
with:
46-
ref: ${{ github.event.inputs.fastcdr-branch || github.ref || matrix.supported-branches }}
46+
ref: ${{
47+
github.event_name == 'workflow_dispatch' && github.event.inputs.fastcdr-branch ||
48+
github.event_name == 'schedule' && matrix.supported-branches ||
49+
github.ref
50+
}}
4751

4852
# Initializes the CodeQL tools for scanning.
4953
- name: Initialize CodeQL

0 commit comments

Comments
 (0)