Skip to content

Commit a8de6e2

Browse files
fix the github.ref from main to trunk
1 parent e90aa0e commit a8de6e2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/codecoverage-main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ jobs:
9191
if: ${{ hashFiles('wp-content') != '' }} # TODO: This may be incorrect since it's a directory.
9292
run: sudo chmod -R a+w wp-content
9393

94-
# On main, there will be a previous coverage report. On PRs we create a new directory using the commit SHA.
94+
# On trunk, there will be a previous coverage report. On PRs we create a new directory using the commit SHA.
9595
- name: Clear previous code coverage
96-
if: ${{ (matrix.php == '7.3') && (github.ref == 'refs/heads/main') }}
96+
if: ${{ (matrix.php == '7.3') && (github.ref == 'refs/heads/trunk') }}
9797
run: |
9898
rm -rf gh-pages/phpunit || true;
9999
mkdir gh-pages/phpunit || true;
@@ -114,7 +114,7 @@ jobs:
114114
115115
# On main, we want it output to a different path
116116
- name: Merge code coverage for main
117-
if: ${{ (matrix.php == '7.3') && (github.ref == 'refs/heads/main') }}
117+
if: ${{ (matrix.php == '7.3') && (github.ref == 'refs/heads/trunk') }}
118118
run: |
119119
vendor/bin/phpcov merge --clover clover.xml tests/_output/;
120120
vendor/bin/phpcov merge --clover gh-pages/phpunit/clover.xml --php gh-pages/phpunit/phpunit.cov --html gh-pages/phpunit/html/ tests/_output/;
@@ -139,7 +139,7 @@ jobs:
139139
git add -- .nojekyll *
140140
141141
- name: Update README coverage badge
142-
if: ${{ (matrix.php == '7.3') && (github.ref == 'refs/heads/main') }} # only commit on main, on the PHP version we're using in production.
142+
if: ${{ (matrix.php == '7.3') && (github.ref == 'refs/heads/trunk') }} # only commit on trunk, on the PHP version we're using in production.
143143
run: php-coverage-badger clover.xml gh-pages/phpunit/coverage.svg
144144

145145
- name: Generate PR coverage badge

0 commit comments

Comments
 (0)