mirror of
https://github.com/actions/setup-java
synced 2024-12-22 13:12:43 +00:00
Add breaking change warning to 'main' branch (#138)
* add warning * Update src/setup-java.ts Co-authored-by: Konrad Pabjan <konradpabjan@github.com> Co-authored-by: Konrad Pabjan <konradpabjan@github.com>
This commit is contained in:
parent
fc62ccaa4f
commit
9c7940b9c6
2 changed files with 5 additions and 0 deletions
1
dist/setup/index.js
vendored
1
dist/setup/index.js
vendored
|
@ -28814,6 +28814,7 @@ function run() {
|
||||||
const keyFingerprint = (yield gpg.importKey(gpgPrivateKey)) || '';
|
const keyFingerprint = (yield gpg.importKey(gpgPrivateKey)) || '';
|
||||||
core.saveState(constants.STATE_GPG_PRIVATE_KEY_FINGERPRINT, keyFingerprint);
|
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) {
|
catch (error) {
|
||||||
core.setFailed(error.message);
|
core.setFailed(error.message);
|
||||||
|
|
|
@ -55,6 +55,10 @@ async function run() {
|
||||||
keyFingerprint
|
keyFingerprint
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
core.warning(
|
||||||
|
`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) {
|
} catch (error) {
|
||||||
core.setFailed(error.message);
|
core.setFailed(error.message);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue