Skip to content

Commit dad2c56

Browse files
committed
Merge branch 'main' into alternate-configuration
2 parents 3fee7a2 + eb9576d commit dad2c56

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ You can automatically generate a clover report file with every PHPUnit run by ad
3535
```
3636

3737
The default configuration does **NOT** push the badge back into the repository.
38-
Setting the input **push_badge** in your workflow to true will enable the commit and push process and the badge will be pushed into the repository after it's been generated.
38+
Setting the input **push_badge** in your workflow to true will enable the commit and push process and the badge will be pushed into the repository after it's been generated. In addition, pushing the badge requires you to update your project settings under `Code and automation` > `Actions` > `General` > `Workflow permissions` to `Read and write permissions`.
39+
3940
Please note: The parsed report file will also be committed and pushed if it changes during the workflow.
4041

4142
If you do not enable **push_badge** you'll need extra steps in your workflow to commit and push the file into the repository.

clover.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<coverage generated="1674764348">
3-
<project timestamp="1674764348">
2+
<coverage generated="1677672740">
3+
<project timestamp="1677672740">
44
<file name="/home/runner/work/phpunit-coverage-badge/phpunit-coverage-badge/src/BadgeGenerator.php">
55
<class name="PhpUnitCoverageBadge\BadgeGenerator" namespace="global">
66
<metrics complexity="7" methods="4" coveredmethods="4" conditionals="0" coveredconditionals="0" statements="19" coveredstatements="19" elements="23" coveredelements="23"/>

0 commit comments

Comments
 (0)