Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/dat 17435 #205

Merged
merged 16 commits into from
May 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,20 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

# setting a build mode based on whether a buildCommand is provided or not.
# If a buildCommand is provided, it sets the build mode to "manual"; otherwise, it sets it to "autobuild".
- name: set build mode
id: set-build-mode
run: |
if ${{ inputs.buildCommand }} != ''
if [[ -n "${{ inputs.buildCommand }}" ]]
then
echo "Build command is provided. Setting buildMode to 'manual'
echo "buildMode='manual'" >> $GITHUB_OUTPUT
echo "Build command is provided. Setting buildMode to manual"
buildMode='manual'
else
echo "Build command is not provided. Setting buildMode to 'autobuild'
echo "buildMode='autobuild'" >> $GITHUB_OUTPUT
echo "Build command is not provided. Setting buildMode to autobuild"
buildMode='autobuild'
fi
echo "buildMode=$buildMode" >> $GITHUB_OUTPUT

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down Expand Up @@ -97,7 +100,7 @@ jobs:
# If no custom command is provided, it will be 'autobuild' by codeql in step set-build-mode .

- name: Build
if: ${{ steps.set-build-mode.outputs.buildMode }} == 'manual'
if: steps.set-build-mode.outputs.buildMode == 'manual'
run: |
${{ inputs.buildCommand }}

Expand Down