+
This commit is contained in:
committed by
GitHub
parent
cd05fb00d8
commit
e2dbab855f
@@ -23,6 +23,10 @@ inputs:
|
|||||||
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
|
||||||
(``github.token``)
|
(``github.token``)
|
||||||
required: true
|
required: true
|
||||||
|
GITHUB_WIKI:
|
||||||
|
description: >
|
||||||
|
Wiki repository clone url
|
||||||
|
required: true
|
||||||
COVERAGE_FILE:
|
COVERAGE_FILE:
|
||||||
description: >
|
description: >
|
||||||
Path and filename of the coverage XML file to analyze.
|
Path and filename of the coverage XML file to analyze.
|
||||||
@@ -64,6 +68,7 @@ runs:
|
|||||||
image: Dockerfile
|
image: Dockerfile
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }}
|
||||||
|
GITHUB_WIKI: ${{ inputs.GITHUB_WIKI }}
|
||||||
COVERAGE_FILE: ${{ inputs.COVERAGE_FILE }}
|
COVERAGE_FILE: ${{ inputs.COVERAGE_FILE }}
|
||||||
COMMENT_TEMPLATE: ${{ inputs.COMMENT_TEMPLATE }}
|
COMMENT_TEMPLATE: ${{ inputs.COMMENT_TEMPLATE }}
|
||||||
DIFF_COVER_ARGS: ${{ inputs.DIFF_COVER_ARGS }}
|
DIFF_COVER_ARGS: ${{ inputs.DIFF_COVER_ARGS }}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# Usage $0 {owner/repo} {filename} {commit_message}
|
# Usage $0 {owner/repo} {filename} {commit_message}
|
||||||
# Stores the content of stdin in a file named {filename} in the wiki of
|
# Stores the content of stdin in a file named {filename} in the wiki of
|
||||||
# the provided repo
|
# the provided repo
|
||||||
# Reads envvar GITHUB_TOKEN
|
# Reads envvar GITHUB_WIKI
|
||||||
|
|
||||||
set -eux
|
set -eux
|
||||||
|
|
||||||
@@ -13,7 +13,7 @@ commit_message="${3}"
|
|||||||
dir="$(mktemp -d)"
|
dir="$(mktemp -d)"
|
||||||
cd $dir
|
cd $dir
|
||||||
|
|
||||||
git clone "https://x-access-token:${GITHUB_TOKEN}@github.com/${repo_name}.wiki.git" .
|
git clone "${GITHUB_WIKI}" .
|
||||||
echo $stdin > "${filename}"
|
echo $stdin > "${filename}"
|
||||||
|
|
||||||
git add "${filename}"
|
git add "${filename}"
|
||||||
|
|||||||
Reference in New Issue
Block a user