From d249a369b79b923087bf7cbba3d2e3a8dc16445b Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Tue, 21 Jan 2025 16:01:35 -0300 Subject: [PATCH] feat: allow for new commands --- CHANGELOG.md | 2 +- action.yml | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index be64204..61ff836 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1009,4 +1009,4 @@ for the full list. ### Dependencies and Misc - #166 Bump requestretry from 4.1.1 to 4.1.2 - #169 Bump typescript from 4.0.5 to 4.1.2 -- #178 Bump @types/jest from 26.0.15 to 26.0.19 \ No newline at end of file +- #178 Bump @types/jest from 26.0.15 to 26.0.19 diff --git a/action.yml b/action.yml index 736e5c4..4639bb4 100644 --- a/action.yml +++ b/action.yml @@ -4,6 +4,9 @@ name: 'Codecov' description: 'GitHub Action that uploads coverage reports for your repository to codecov.io' author: 'Thomas Hu <@thomasrockhu-codecov> | Codecov' inputs: + base_sha: + description: 'The base SHA to select. This is only used in the "pr-base-picking" run command' + required: false binary: description: 'The file location of a pre-downloaded version of the CLI. If specified, integrity checking will be bypassed.' required: false @@ -52,6 +55,9 @@ inputs: flags: description: 'Comma-separated list of flags to upload to group coverage metrics.' required: false + force: + description: 'Only used for empty-upload run command' + required: false git_service: description: 'Override the git_service (e.g. github_enterprise)' required: false @@ -115,6 +121,10 @@ inputs: root_dir: description: 'Root folder from which to consider paths on the network section. Defaults to current working directory.' required: false + run_command: + description: 'Choose which CLI command to run. Options are "upload-coverage", "empty-upload", "pr-base-picking", "send-notifications". "upload-coverage" is run by default.' + required: false + default: 'upload-coverage' skip_validation: description: 'Skip integrity checking of the CLI. This is NOT recommended.' required: false @@ -253,6 +263,7 @@ runs: shell: bash working-directory: ${{ inputs.working-directory }} env: + CC_BASE_SHA: ${{ inputs.base_sha }} CC_BINARY: ${{ inputs.binary }} CC_BUILD: ${{ inputs.override_build }} CC_BUILD_URL: ${{ inputs.override_build_url }} @@ -268,6 +279,7 @@ runs: CC_FAIL_ON_ERROR: ${{ inputs.fail_ci_if_error }} CC_FILES: ${{ inputs.files }} CC_FLAGS: ${{ inputs.flags }} + CC_FORCE: ${{ inputs.force }} CC_GCOV_ARGS: ${{ inputs.gcov_args }} CC_GCOV_EXECUTABLE: ${{ inputs.gcov_executable }} CC_GCOV_IGNORE: ${{ inputs.gcov_ignore }} @@ -284,6 +296,8 @@ runs: CC_PARENT_SHA: ${{ inputs.commit_parent }} CC_PLUGINS: ${{ inputs.plugins }} CC_REPORT_TYPE: ${{ inputs.report_type }} + CC_RUN_COMMAND: ${{ inputs.run_command }} + CC_SERVICE: ${{ inputs.git_service }} CC_SKIP_VALIDATION: ${{ inputs.skip_validation }} CC_SLUG: ${{ inputs.slug }} CC_SWIFT_PROJECT: ${{ inputs.swift_project }}