Skip to content

Commit 9c7940b

Browse files
Add breaking change warning to 'main' branch (#138)
* add warning * Update src/setup-java.ts Co-authored-by: Konrad Pabjan <[email protected]> Co-authored-by: Konrad Pabjan <[email protected]>
1 parent fc62cca commit 9c7940b

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

dist/setup/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -28814,6 +28814,7 @@ function run() {
2881428814
const keyFingerprint = (yield gpg.importKey(gpgPrivateKey)) || '';
2881528815
core.saveState(constants.STATE_GPG_PRIVATE_KEY_FINGERPRINT, keyFingerprint);
2881628816
}
28817+
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`);
2881728818
}
2881828819
catch (error) {
2881928820
core.setFailed(error.message);

src/setup-java.ts

+4
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ async function run() {
5555
keyFingerprint
5656
);
5757
}
58+
59+
core.warning(
60+
`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`
61+
);
5862
} catch (error) {
5963
core.setFailed(error.message);
6064
}

0 commit comments

Comments
 (0)