Skip to content

Commit cae6cb2

Browse files
committed
don't run tests on documentation-only PRs
1 parent ccb3859 commit cae6cb2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,13 @@ jobs:
3838
./gradlew :buildAckpine --stacktrace
3939
4040
- name: Run tests
41+
if: github.repository == 'solrudev/Ackpine' && github.event.pull_request.labels.*.name != fromJSON(["documentation"])
4142
run: |
4243
./gradlew test
4344
4445
- name: Publish test report
4546
uses: mikepenz/action-junit-report@a294a61c909bd8a4b563024a2faa28897fd53ebc # 6.1.0
46-
if: success() || failure()
47+
if: github.repository == 'solrudev/Ackpine' && github.event.pull_request.labels.*.name != fromJSON(["documentation"]) && (success() || failure())
4748
with:
4849
report_paths: '**/build/test-results/*/TEST-*.xml'
4950

0 commit comments

Comments
 (0)