Skip to content

Commit

Permalink
Updating size jar validation
Browse files Browse the repository at this point in the history
  • Loading branch information
nollymar committed Sep 24, 2024
1 parent 30ed071 commit ae7bfc0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
# This is how we instruct the cli to create the workspace if it does not exist
DOT_CREATE_WORKSPACE: ${{ vars.DOT_CREATE_WORKSPACE || 'true' }}
# This is the CLI version to use, but we can always override this value
DOT_CLI_JAR_DOWNLOAD_URL: 'https://repo.dotcms.com/artifactory/libs-release-local/com/dotcms/dotcms-cli/24.09.21/dotcms-cli-24.09.21.jar'
DOT_CLI_JAR_DOWNLOAD_URL: ${{ vars.DOT_CLI_JAR_DOWNLOAD_URL || 'https://repo.dotcms.com/artifactory/libs-snapshot-local/com/dotcms/dotcms-cli/1.0.0-SNAPSHOT/dotcms-cli-1.0.0-20231002.205953-1.jar' }}
# In case we want to force the download of the CLI jar
DOT_FORCE_DOWNLOAD: ${{ vars.DOT_FORCE_DOWNLOAD || 'false' }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scripts/run-push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ _get_CLI(){
file="${DOT_CLI_HOME}${DOT_CLI_JAR}" && \
actual_size=$(wc -c <"$file");

if [ "$actual_size" -lt 1000000 ]; then
if [ "$actual_size" -lt 100000 ]; then
echo "The file is too small to be the CLI, please check the version and try again"
exit 1
fi
Expand Down

0 comments on commit ae7bfc0

Please sign in to comment.