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
|
||||
|
||||
> **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 Code Coverage
|
||||
|
||||
Upload a Cobertura XML coverage report to GitHub's code coverage API.
|
||||
|
||||
## Usage
|
||||
|
||||
```yaml
|
||||
- uses: code-quality-org/upload-code-coverage-action@main
|
||||
- uses: actions/upload-code-coverage@v1
|
||||
with:
|
||||
file: cobertura.xml
|
||||
language: Java
|
||||
@@ -88,7 +86,7 @@ jobs:
|
||||
with:
|
||||
name: cobertura-report
|
||||
|
||||
- uses: code-quality-org/upload-code-coverage-action@main
|
||||
- uses: actions/upload-code-coverage@v1
|
||||
with:
|
||||
file: cobertura.xml
|
||||
language: Java
|
||||
|
||||
+1
-1
@@ -99,7 +99,7 @@ runs:
|
||||
UPLOAD_OUTPUT=$(gh api --method PUT "/repos/${{ github.repository }}/code-coverage/report" \
|
||||
--input __body.json 2>&1) || {
|
||||
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
|
||||
echo "::error::Coverage upload failed: $UPLOAD_OUTPUT"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user