You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by vy...@apache.org on 2021/10/04 07:35:21 UTC
[logging-log4j2] branch release-2.x updated: Upgrade GitHub
setup-java action.
This is an automated email from the ASF dual-hosted git repository.
vy pushed a commit to branch release-2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
The following commit(s) were added to refs/heads/release-2.x by this push:
new a79f633 Upgrade GitHub setup-java action.
a79f633 is described below
commit a79f6338498a78214587c19e083f135f90777857
Author: Volkan Yazici <vo...@gmail.com>
AuthorDate: Mon Oct 4 09:34:42 2021 +0200
Upgrade GitHub setup-java action.
---
.github/workflows/main.yml | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index d4b6048..6ae8995 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -25,20 +25,21 @@ jobs:
${{ runner.os }}-maven-
- name: Setup JDK 11
- uses: actions/setup-java@v2.2.0
+ uses: actions/setup-java@v2.3.0
with:
- distribution: 'adopt'
+ distribution: 'temurin'
java-version: 11
java-package: jdk
architecture: x64
- name: Setup JDK 8
- uses: actions/setup-java@v1
+ uses: actions/setup-java@v2.3.0
with:
- distribution: 'adopt'
+ distribution: 'temurin'
java-version: 8
java-package: jdk
architecture: x64
+ cache: 'maven'
- name: Inspect environment (Linux)
if: runner.os == 'Linux'
@@ -81,6 +82,9 @@ jobs:
report_paths: '**/*-reports/TEST-*.xml'
- name: Upload Test Reports
+ # 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: actions/upload-artifact@v2
with:
name: test-reports-${{ matrix.os }}