Update references for actions/upload-code-coverage
Update README and action.yml to reference the new permanent home at actions/upload-code-coverage. Remove temporary location notice. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -1,13 +1,11 @@
|
|||||||
# Upload Code Coverage Action
|
# Upload Code Coverage
|
||||||
|
|
||||||
> **Note:** This repo (`code-quality-org/upload-code-coverage-action`) is a temporary home while the action is being developed. It will move to `github/upload-code-coverage-action` once it's ready for general use.
|
|
||||||
|
|
||||||
Upload a Cobertura XML coverage report to GitHub's code coverage API.
|
Upload a Cobertura XML coverage report to GitHub's code coverage API.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- uses: code-quality-org/upload-code-coverage-action@main
|
- uses: actions/upload-code-coverage@v1
|
||||||
with:
|
with:
|
||||||
file: cobertura.xml
|
file: cobertura.xml
|
||||||
language: Java
|
language: Java
|
||||||
@@ -88,7 +86,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: cobertura-report
|
name: cobertura-report
|
||||||
|
|
||||||
- uses: code-quality-org/upload-code-coverage-action@main
|
- uses: actions/upload-code-coverage@v1
|
||||||
with:
|
with:
|
||||||
file: cobertura.xml
|
file: cobertura.xml
|
||||||
language: Java
|
language: Java
|
||||||
|
|||||||
+1
-1
@@ -99,7 +99,7 @@ runs:
|
|||||||
UPLOAD_OUTPUT=$(gh api --method PUT "/repos/${{ github.repository }}/code-coverage/report" \
|
UPLOAD_OUTPUT=$(gh api --method PUT "/repos/${{ github.repository }}/code-coverage/report" \
|
||||||
--input __body.json 2>&1) || {
|
--input __body.json 2>&1) || {
|
||||||
if echo "$UPLOAD_OUTPUT" | grep -qi "not authorized"; then
|
if echo "$UPLOAD_OUTPUT" | grep -qi "not authorized"; then
|
||||||
echo "::error::Coverage upload returned 403 Forbidden. Ensure the calling job has 'security-events: write' permission. See https://github.com/code-quality-org/upload-code-coverage-action#permissions"
|
echo "::error::Coverage upload returned 403 Forbidden. Ensure the calling job has 'security-events: write' permission. See https://github.com/actions/upload-code-coverage#permissions"
|
||||||
else
|
else
|
||||||
echo "::error::Coverage upload failed: $UPLOAD_OUTPUT"
|
echo "::error::Coverage upload failed: $UPLOAD_OUTPUT"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user