From 6db3a52964a6a006b6fdaae1ac59f1f72351ed8a Mon Sep 17 00:00:00 2001 From: Maxim Lobanov Date: Fri, 19 Mar 2021 12:53:45 +0300 Subject: [PATCH 1/2] add warning --- dist/setup/index.js | 1 + src/setup-java.ts | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/dist/setup/index.js b/dist/setup/index.js index a1ef83a28..55052c51f 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -28814,6 +28814,7 @@ function run() { const keyFingerprint = (yield gpg.importKey(gpgPrivateKey)) || ''; core.saveState(constants.STATE_GPG_PRIVATE_KEY_FINGERPRINT, keyFingerprint); } + core.warning(`All setup-java actions pinned to 'main' branch will fail on 5th April 2021. Please explicitly reference your action to the 'v1' tag ('actions/setup-java@v1') to avoid build failures. Find more details in https://github.com/actions/setup-java/issues/137`); } catch (error) { core.setFailed(error.message); diff --git a/src/setup-java.ts b/src/setup-java.ts index 5ba352971..3a4d6c712 100644 --- a/src/setup-java.ts +++ b/src/setup-java.ts @@ -55,6 +55,10 @@ async function run() { keyFingerprint ); } + + core.warning( + `All setup-java actions pinned to 'main' branch will fail on 5th April 2021. Please explicitly reference your action to the 'v1' tag ('actions/setup-java@v1') to avoid build failures. Find more details in https://github.com/actions/setup-java/issues/137` + ); } catch (error) { core.setFailed(error.message); } From 4e6af5a2d7d7c1d4da9ee0ba337d9100d60e0bf0 Mon Sep 17 00:00:00 2001 From: Maxim Lobanov Date: Fri, 19 Mar 2021 17:25:37 +0300 Subject: [PATCH 2/2] Update src/setup-java.ts Co-authored-by: Konrad Pabjan --- src/setup-java.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/setup-java.ts b/src/setup-java.ts index 3a4d6c712..5cfb28a97 100644 --- a/src/setup-java.ts +++ b/src/setup-java.ts @@ -57,7 +57,7 @@ async function run() { } core.warning( - `All setup-java actions pinned to 'main' branch will fail on 5th April 2021. Please explicitly reference your action to the 'v1' tag ('actions/setup-java@v1') to avoid build failures. Find more details in https://github.com/actions/setup-java/issues/137` + `All setup-java actions pinned to the 'main' branch will fail on April 5th 2021. Please explicitly reference your action with the 'v1' tag ('actions/setup-java@v1') to avoid build failures. Find more details at https://github.com/actions/setup-java/issues/137` ); } catch (error) { core.setFailed(error.message);