Skip to content

Commit 570734c

Browse files
authored
Remove unnecessary conditional for Ruby autodetect (#1699)
We should check language autodetect for Ruby unconditionally. We can now move it into the step that checks all other languages.
1 parent 8c923c0 commit 570734c

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

.github/workflows/__multi-language-autodetect.yml

Lines changed: 1 addition & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pr-checks/checks/multi-language-autodetect.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ steps:
2121
with:
2222
upload-database: false
2323

24-
- name: Check language autodetect for all languages excluding Ruby, Swift
24+
- name: Check language autodetect for all languages excluding Swift
2525
shell: bash
2626
run: |
2727
CPP_DB=${{ fromJson(steps.analysis.outputs.db-locations).cpp }}
@@ -54,11 +54,6 @@ steps:
5454
echo "Did not create a database for Python, or created it in the wrong location."
5555
exit 1
5656
fi
57-
58-
- name: Check language autodetect for Ruby
59-
if: env.CODEQL_ENABLE_EXPERIMENTAL_FEATURES_SWIFT == 'true'
60-
shell: bash
61-
run: |
6257
RUBY_DB=${{ fromJson(steps.analysis.outputs.db-locations).ruby }}
6358
if [[ ! -d $RUBY_DB ]] || [[ ! $RUBY_DB == ${{ runner.temp }}/customDbLocation/* ]]; then
6459
echo "Did not create a database for Ruby, or created it in the wrong location."

0 commit comments

Comments
 (0)