File tree 1 file changed +13
-7
lines changed
1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -14,18 +14,24 @@ jobs:
14
14
runs-on : ubuntu-latest
15
15
steps :
16
16
- uses : actions/checkout@v2
17
- - name : Cache queries
18
- id : cache-queries
19
- uses : actions/cache@v2
20
- with :
21
- path : ${{ runner.temp }}/query-pack.zip
22
- key : queries-${{ hashFiles('**/*.ql*') }}
23
17
- name : Find codeql
24
- if : steps.cache-queries.outputs.cache-hit != 'true'
25
18
id : find-codeql
26
19
uses : github/codeql-action/init@esbena/ql
27
20
with :
28
21
languages : javascript # does not matter
22
+ - name : Get CodeQL version
23
+ id : get-codeql-version
24
+ run : |
25
+ echo "::set-output name=version::$("${CODEQL}" --version | head -n 1 | rev | cut -d " " -f 1 | rev)"
26
+ shell : bash
27
+ env :
28
+ CODEQL : ${{ steps.find-codeql.outputs.codeql-path }}
29
+ - name : Cache queries
30
+ id : cache-queries
31
+ uses : actions/cache@v2
32
+ with :
33
+ path : ${{ runner.temp }}/query-pack.zip
34
+ key : queries-${{ hashFiles('ql/**/*.ql*') }}-${{ hashFiles('ql/ql/src/ql.dbscheme*') }}-${{ steps.get-codeql-version.outputs.version }}
29
35
- name : Build query pack
30
36
if : steps.cache-queries.outputs.cache-hit != 'true'
31
37
run : |
You can’t perform that action at this time.
0 commit comments