Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 909e6d5

Browse files
committed
Query pack: include .rb and .erb sample files from queries directory
These are required by the qhelp files.
1 parent 78a6ed4 commit 909e6d5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ jobs:
8181
- name: Build Query Pack
8282
run: |
8383
codeql/codeql pack create ql/src --output target/packs
84-
cp -r ql/src/codeql-suites target/packs/github_codeql-ruby_*/
84+
PACK_FOLDER=$(readlink -f target/packs/github_codeql-ruby_*)
85+
cp -r ql/src/codeql-suites "${PACK_FOLDER}"/
86+
(cd ql/src; find queries \( -name '*.rb' -o -name '*.erb' \) -exec cp "{}" "${PACK_FOLDER}/{}" \;)
8587
- name: Compile with previous CodeQL versions
8688
run: |
8789
for version in $(gh release list --repo https://github.com/github/codeql-cli-binaries | cut -f 1 | sort --version-sort | tail -3 | head -2); do

0 commit comments

Comments
 (0)