From 7e44243fa5ef2a9a8bdc3ef0b0747da3af38a700 Mon Sep 17 00:00:00 2001 From: Rustem Khusnutdinov Date: Thu, 28 Nov 2024 12:29:10 +0300 Subject: [PATCH] + --- action.yml | 24 ++++++++++-------------- src/entrypoint | 2 +- 2 files changed, 11 insertions(+), 15 deletions(-) diff --git a/action.yml b/action.yml index 80b2a6d..a9ba5f6 100644 --- a/action.yml +++ b/action.yml @@ -6,18 +6,14 @@ description: > Publish diff coverage report as PR comment, and create a coverage badge to display on the readme. inputs: - # SSH_KEY: - # description: > - # SSH key to work with repository - # required: true - # CLOUDFLARE_TOKEN_ID: - # description: > - # A Cloudflare token id to work with git repository behind CF - # required: true - # CLOUDFLARE_TOKEN_SECRET: - # description: > - # A Cloudflare token secret to work with git repository behind CF - # required: true + CLOUDFLARE_TOKEN_ID: + description: > + A Cloudflare token id to work with git repository behind CF + required: true + CLOUDFLARE_TOKEN_SECRET: + description: > + A Cloudflare token secret to work with git repository behind CF + required: true GITHUB_TOKEN: description: > A GitHub token to write comments and write the badge to the wiki @@ -71,5 +67,5 @@ runs: BADGE_FILENAME: ${{ inputs.BADGE_FILENAME }} MINIMUM_GREEN: ${{ inputs.MINIMUM_GREEN }} MINIMUM_ORANGE: ${{ inputs.MINIMUM_ORANGE }} - # TOKEN_ID: ${{ inputs.CLOUDFLARE_TOKEN_ID }} - # TOKEN_SECRET: ${{ inputs.CLOUDFLARE_TOKEN_SECRET }} + TOKEN_ID: ${{ inputs.CLOUDFLARE_TOKEN_ID }} + TOKEN_SECRET: ${{ inputs.CLOUDFLARE_TOKEN_SECRET }} diff --git a/src/entrypoint b/src/entrypoint index 5d19603..77661eb 100755 --- a/src/entrypoint +++ b/src/entrypoint @@ -156,7 +156,7 @@ def get_coverage_info(config: Config) -> dict: def get_diff_coverage_info(config: Config) -> dict: - # call("git", "fetch", "--depth=1000") + call("git", "fetch", "--depth=1000") with tempfile.NamedTemporaryFile("r") as f: call( "diff-cover",