File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed
Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -14,18 +14,24 @@ jobs:
1414 runs-on : ubuntu-latest
1515 steps :
1616 - 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*') }}
2317 - name : Find codeql
24- if : steps.cache-queries.outputs.cache-hit != 'true'
2518 id : find-codeql
2619 uses : github/codeql-action/init@esbena/ql
2720 with :
2821 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 }}
2935 - name : Build query pack
3036 if : steps.cache-queries.outputs.cache-hit != 'true'
3137 run : |
You can’t perform that action at this time.
0 commit comments