This is an automated email from the ASF dual-hosted git repository.
vy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
The following commit(s) were added to refs/heads/master by this push:
new 8dfec4d LOG4J2-3085 Skip certain CI jobs for external PRs.
8dfec4d is described below
commit 8dfec4df287ff261f0488256ac3d1779c0ace344
Author: Volkan Yazici <[email protected]>
AuthorDate: Wed Aug 4 16:22:27 2021 +0200
LOG4J2-3085 Skip certain CI jobs for external PRs.
---
.github/workflows/main.yml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index b003367..5f4ff80 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -63,6 +63,9 @@ jobs:
run: ./mvnw -V -B --no-transfer-progress -e -DtrimStackTrace=false
-Dmaven.test.failure.ignore=true -Dsurefire.rerunFailingTestsCount=1 verify
- name: Publish Test Results
+ # If the CI run is not initiated from the primary repository, it is
highly likely that this is a PR from a user who doesn't have commit rights.
+ # Hence, skip this step to avoid permission failures.
+ if: github.repository == 'apache/logging-log4j2'
uses: scacap/action-surefire-report@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}