Skip to content

Commit

Permalink
feat: make CLI download only
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasrockhu-codecov committed Dec 16, 2024
1 parent 8e89f7c commit 1a6b319
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/push-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ jobs:

- name: Create pull request into main
run: |
gh pr create --fill --base "main"
ENV_CHANGES=$(git diff $(git tag --sort version:refname | tail -n 2 | head -n 1) $(git tag --sort version:refname | tail -n 1) env)
gh pr create --title "chore(release): wrapper -${{ inputs.version }}" --body "$ENV_CHANGES" --base "main"
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
9 changes: 9 additions & 0 deletions dist/codecov.sh
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,15 @@ CC_PUBLIC_PGP_KEY=$(curl -s https://keybase.io/codecovsecurity/pgp_keys.asc)
say "$g==>$x CLI integrity verified"
say
fi
if [ -n "$CC_BINARY_LOCATION" ];
then
mkdir -p "$CC_BINARY_LOCATION" && mv "$cc_filename" $_
say "$g==>$x Codecov binary moved to ${CC_BINARY_LOCATION}"
fi
if [ "$CC_DOWNLOAD_ONLY" = "true" ];
then
say "$g==>$x Codecov download only called. Exiting..."
fi
cc_cli_args=()
cc_cli_args+=( $(k_arg AUTO_LOAD_PARAMS_FROM) $(v_arg AUTO_LOAD_PARAMS_FROM))
cc_cli_args+=( $(k_arg ENTERPRISE_URL) $(v_arg ENTERPRISE_URL))
Expand Down
2 changes: 2 additions & 0 deletions env
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@

CC_AUTO_LOAD_PARAMS_FROM
CC_BINARY
CC_BINARY_LOCATION
CC_BRANCH
CC_BUILD
CC_BUILD_URL
CC_CODE
CC_DIR
CC_DISABLE_FILE_FIXES
CC_DISABLE_SEARCH
CC_DOWNLOAD_ONLY
CC_DRY_RUN
CC_ENTERPRISE_URL
CC_ENV
Expand Down
11 changes: 11 additions & 0 deletions scripts/validate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,14 @@ else
say "$g==>$x CLI integrity verified"
say
fi

if [ -n "$CODECOV_BINARY_LOCATION" ];
then
mkdir -p "$CODECOV_BINARY_LOCATION" && mv "$codecov_filename" $_
say "$g==>$x Codecov binary moved to ${CODECOV_BINARY_LOCATION}"
fi

if [ "$CODECOV_DOWNLOAD_ONLY" = "true" ];
then
say "$g==>$x Codecov download only called. Exiting..."
fi

0 comments on commit 1a6b319

Please sign in to comment.