Skip to content

Commit

Permalink
Update codeql.yml
Browse files Browse the repository at this point in the history
Signed-off-by: ArchBlood <35392110+ArchBlood@users.noreply.github.com>
  • Loading branch information
ArchBlood authored May 6, 2024
1 parent 8ba2cd0 commit 0a9b662
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,36 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Debug
run: |
ls -l
cd GreenMeteor/humhub-twa/android
ls -l
if: always() # Always run this step for debugging purposes

- name: Check Directory
run: |
if [ -d "GreenMeteor/humhub-twa/android" ]; then
echo "Directory exists"
exit 0
else
echo "Directory does not exist"
exit 1
fi
continue-on-error: true # Continue even if the directory check fails

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: java-kotlin

# Manually build your code here
# Manually build your code here, but only if the directory exists
- name: Build
run: |
cd GreenMeteor/humhub-twa/android
./gradlew assemble
ls -l app/build/outputs/apk/release/app-release-unsigned.apk
ls -l app/build/outputs/apk/release/*.apk
if: always() # Always run this step, but only if the directory check passed

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
Expand Down

0 comments on commit 0a9b662

Please sign in to comment.