Skip to content

Commit 2da1065

Browse files
PR Checks: Use version of codeql repo suitable for CLI version
1 parent 3536124 commit 2da1065

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/main.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,26 @@ jobs:
177177
npm run build
178178
shell: bash
179179

180+
- name: Decide on ref of CodeQL repo
181+
id: choose-ref
182+
shell: bash
183+
run: |
184+
if [[ "${{ matrix.version }}" == "nightly" ]]
185+
then
186+
REF="codeql-cli/latest"
187+
elif [[ "${{ matrix.version }}" == "v2.2.6" || "${{ matrix.version }}" == "v2.3.3" ]]
188+
then
189+
REF="codeql-cli/v2.4.5"
190+
else
191+
REF="codeql-cli/${{ matrix.version }}"
192+
fi
193+
echo "::set-output name=ref::$REF"
194+
180195
- name: Checkout QL
181196
uses: actions/checkout@v2
182197
with:
183198
repository: github/codeql
199+
ref: ${{ steps.choose-ref.outputs.ref }}
184200
path: codeql
185201

186202
- name: Run CLI tests (Linux)

0 commit comments

Comments
 (0)