exclude beta releases of code-cli for qltest job

This commit is contained in:
Alex Ford
2021-08-17 09:54:28 +01:00
parent 0f6c464d27
commit 8427a6bcee

View File

@@ -15,8 +15,8 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Fetch CodeQL
run: |
LATEST=$(gh release list --repo https://github.com/github/codeql-cli-binaries | cut -f 1 | sort --version-sort | tail -1)
run: |
LATEST=$(gh release list --repo https://github.com/github/codeql-cli-binaries | cut -f 1 | grep -v beta | sort --version-sort | tail -1)
gh release download --repo https://github.com/github/codeql-cli-binaries --pattern codeql-linux64.zip "$LATEST"
unzip -q codeql-linux64.zip
env: