+
This commit is contained in:
committed by
GitHub
parent
d0cb8666cc
commit
2fa991581e
28
action.yml
28
action.yml
@@ -6,18 +6,18 @@ description: >
|
|||||||
Publish diff coverage report as PR comment, and create a coverage badge
|
Publish diff coverage report as PR comment, and create a coverage badge
|
||||||
to display on the readme.
|
to display on the readme.
|
||||||
inputs:
|
inputs:
|
||||||
SSH_KEY:
|
# SSH_KEY:
|
||||||
description: >
|
# description: >
|
||||||
SSH key to work with repository
|
# SSH key to work with repository
|
||||||
required: true
|
# required: true
|
||||||
CLOUDFLARE_TOKEN_ID:
|
# CLOUDFLARE_TOKEN_ID:
|
||||||
description: >
|
# description: >
|
||||||
A Cloudflare token id to work with git repository behind CF
|
# A Cloudflare token id to work with git repository behind CF
|
||||||
required: true
|
# required: true
|
||||||
CLOUDFLARE_TOKEN_SECRET:
|
# CLOUDFLARE_TOKEN_SECRET:
|
||||||
description: >
|
# description: >
|
||||||
A Cloudflare token secret to work with git repository behind CF
|
# A Cloudflare token secret to work with git repository behind CF
|
||||||
required: true
|
# required: true
|
||||||
GITHUB_TOKEN:
|
GITHUB_TOKEN:
|
||||||
description: >
|
description: >
|
||||||
A GitHub token to write comments and write the badge to the wiki
|
A GitHub token to write comments and write the badge to the wiki
|
||||||
@@ -71,5 +71,5 @@ runs:
|
|||||||
BADGE_FILENAME: ${{ inputs.BADGE_FILENAME }}
|
BADGE_FILENAME: ${{ inputs.BADGE_FILENAME }}
|
||||||
MINIMUM_GREEN: ${{ inputs.MINIMUM_GREEN }}
|
MINIMUM_GREEN: ${{ inputs.MINIMUM_GREEN }}
|
||||||
MINIMUM_ORANGE: ${{ inputs.MINIMUM_ORANGE }}
|
MINIMUM_ORANGE: ${{ inputs.MINIMUM_ORANGE }}
|
||||||
TOKEN_ID: ${{ inputs.CLOUDFLARE_TOKEN_ID }}
|
# TOKEN_ID: ${{ inputs.CLOUDFLARE_TOKEN_ID }}
|
||||||
TOKEN_SECRET: ${{ inputs.CLOUDFLARE_TOKEN_SECRET }}
|
# TOKEN_SECRET: ${{ inputs.CLOUDFLARE_TOKEN_SECRET }}
|
||||||
|
|||||||
@@ -156,7 +156,7 @@ def get_coverage_info(config: Config) -> dict:
|
|||||||
|
|
||||||
|
|
||||||
def get_diff_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:
|
with tempfile.NamedTemporaryFile("r") as f:
|
||||||
call(
|
call(
|
||||||
"diff-cover",
|
"diff-cover",
|
||||||
|
|||||||
Reference in New Issue
Block a user