Skip to content

Commit ed8422a

Browse files
committed
remove need for CODEQL_DIST path
1 parent 0d2ec2d commit ed8422a

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

java/ql/automodel/publish.sh

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,6 @@ if [ -z "${GITHUB_TOKEN}" ]; then
6767
echo "Error: GITHUB_TOKEN environment variable not set. Please set this to a token with package:write permissions to codeql."
6868
exit 1
6969
fi
70-
if [ -z "${CODEQL_DIST}" ]; then
71-
echo "Error: CODEQL_DIST environment variable not set. Please set this to the path of a codeql distribution."
72-
exit 1
73-
fi
7470
if [ -z "${GH_TOKEN}" ]; then
7571
echo "Error: GH_TOKEN environment variable not set. Please set this to a token with repo permissions to github/codeml-automodel."
7672
exit 1
@@ -134,27 +130,22 @@ gh extensions install github/gh-codeql
134130

135131
pushd "$AUTOMODEL_ROOT"
136132
echo Testing automodel queries
137-
#"${CODEQL_DIST}/codeql" test run test
138133
gh codeql test run test
139134
popd
140135

141136
pushd "$WORKSPACE_ROOT"
142137
echo "Preparing the release"
143-
#"${CODEQL_DIST}/codeql" pack release --groups $GRPS -v
144138
gh codeql pack release --groups $GRPS -v
145139

146140
if [ $DRY_RUN = 1 ]; then
147141
echo "Dry run: not publishing the query pack"
148-
#"${CODEQL_DIST}/codeql" pack publish --groups $GRPS --dry-run -v
149142
gh codeql pack publish --groups $GRPS --dry-run -v
150143
else
151144
echo "Not a dry run! Publishing the query pack"
152-
#"${CODEQL_DIST}/codeql" pack publish --groups $GRPS -v
153145
gh codeql pack publish --groups $GRPS -v
154146
fi
155147

156148
echo "Bumping versions"
157-
#"${CODEQL_DIST}/codeql" pack post-release --groups $GRPS -v
158149
gh codeql pack post-release --groups $GRPS -v
159150
popd
160151

0 commit comments

Comments
 (0)