Skip to content

Commit

Permalink
Fix/dat 17435 (#205)
Browse files Browse the repository at this point in the history
* logic change

* logic change

* logic change

* logic change

* logic change

* logic change

* logic change

* logic change

* logic change

* logic change

* logic change

* logic change

* logic change

* logic change

* logic change

* add comments

---------

Co-authored-by: Sayali M <sayali@Sayalis-MacBook-Pro>
  • Loading branch information
sayaliM0412 and Sayali M authored May 1, 2024
1 parent e2be854 commit b77174d
Showing 1 changed file with 9 additions and 6 deletions.
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

0 comments on commit b77174d

Please sign in to comment.