Skip to content

Commit cc6dca3

Browse files
committed
(GH-66) fixed codeql-analysis
1 parent b373204 commit cc6dca3

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

.github/workflows/codeql-analysis.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,24 @@ jobs:
2424
with:
2525
fetch-depth: 0
2626

27-
- run: git checkout HEAD^2
28-
if: ${{ github.event_name == 'pull_request' }}
27+
- name: Cache Tools
28+
uses: actions/cache@v2
29+
with:
30+
path: tools
31+
key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake') }}
2932

3033
- name: Initialize CodeQL
3134
uses: github/codeql-action/init@v1
3235
with:
3336
languages: ${{ matrix.language }}
3437

35-
- run: ./build.ps1 --target=DotNetCore-Build
36-
shell: pwsh
38+
- name: Build project
39+
uses: cake-build/cake-action@v1
40+
with:
41+
script-path: recipe.cake
42+
target: DotNetCore-Build
43+
cake-version: 0.38.5
44+
cake-bootstrap: true
3745

3846
- name: Perform CodeQL Analysis
3947
uses: github/codeql-action/analyze@v1

0 commit comments

Comments
 (0)