Add two 'composite' actions for reusing logic

This commit is contained in:
Tom Hvitved
2021-09-20 13:25:19 +02:00
parent 36289aa9d9
commit e201dae672
5 changed files with 39 additions and 39 deletions

13
.github/actions/fetch-codeql/action.yml vendored Normal file
View File

@@ -0,0 +1,13 @@
name: Fetch CodeQL
description: Fetches the latest version of CodeQL
runs:
using: composite
steps:
- name: Fetch CodeQL
shell: bash
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:
GITHUB_TOKEN: ${{ github.token }}