From 1945c923818c9888ed8c17545cafb5dbf40497dc Mon Sep 17 00:00:00 2001 From: Paul Gilber Date: Sat, 28 Oct 2023 01:47:00 +0000 Subject: [PATCH] codeql workflow: build when autobuild failed --- .github/workflows/code-scan-codeql.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/code-scan-codeql.yml b/.github/workflows/code-scan-codeql.yml index 08548d1..6801ec9 100644 --- a/.github/workflows/code-scan-codeql.yml +++ b/.github/workflows/code-scan-codeql.yml @@ -43,14 +43,17 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild + continue-on-error: true + id: autobuild uses: github/codeql-action/autobuild@v2.22.5 # Note: If the Autobuild fails above, remove it and uncomment the following three lines # and modify them (or add more) to build your code if your project # uses a compiled language + - name: Build + if: failure() && steps.autobuild.outcome == 'failure' + run: | + mvn clean package -Dmaven.test.skip=true -Ddockerfile.skip - #- run: | - # make bootstrap - # make release - name: Run CodeQL Analysis uses: github/codeql-action/analyze@v2.22.5