mirror of
https://github.com/actions/setup-java.git
synced 2026-08-05 17:02:57 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e9fbacdec3 | |||
| 17f84c3641 |
@@ -0,0 +1,20 @@
|
||||
name: 'Publish Immutable Action Version'
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
id-token: write
|
||||
packages: write
|
||||
|
||||
steps:
|
||||
- name: Checking out
|
||||
uses: actions/checkout@v4
|
||||
- name: Publish
|
||||
id: publish
|
||||
uses: actions/publish-immutable-action@v0.0.4
|
||||
@@ -1,6 +1,7 @@
|
||||
name: 'Setup Java JDK'
|
||||
description: 'Set up a specific version of the Java JDK and add the
|
||||
command-line tools to the PATH'
|
||||
deprecationMessage: 'setup-java v3 is deprecated and will no longer receive updates. Please migrate to actions/setup-java@v5.'
|
||||
author: 'GitHub'
|
||||
inputs:
|
||||
java-version:
|
||||
|
||||
Vendored
+2
@@ -132179,9 +132179,11 @@ const constants = __importStar(__nccwpck_require__(69042));
|
||||
const cache_1 = __nccwpck_require__(64810);
|
||||
const path = __importStar(__nccwpck_require__(71017));
|
||||
const distribution_factory_1 = __nccwpck_require__(10924);
|
||||
const DEPRECATION_WARNING = 'setup-java v3 is deprecated and will no longer receive updates. Please migrate to actions/setup-java@v5.';
|
||||
function run() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
try {
|
||||
core.warning(DEPRECATION_WARNING);
|
||||
const versions = core.getMultilineInput(constants.INPUT_JAVA_VERSION);
|
||||
const distributionName = core.getInput(constants.INPUT_DISTRIBUTION, {
|
||||
required: true
|
||||
|
||||
@@ -13,8 +13,13 @@ import * as path from 'path';
|
||||
import {getJavaDistribution} from './distributions/distribution-factory';
|
||||
import {JavaInstallerOptions} from './distributions/base-models';
|
||||
|
||||
const DEPRECATION_WARNING =
|
||||
'setup-java v3 is deprecated and will no longer receive updates. Please migrate to actions/setup-java@v5.';
|
||||
|
||||
async function run() {
|
||||
try {
|
||||
core.warning(DEPRECATION_WARNING);
|
||||
|
||||
const versions = core.getMultilineInput(constants.INPUT_JAVA_VERSION);
|
||||
const distributionName = core.getInput(constants.INPUT_DISTRIBUTION, {
|
||||
required: true
|
||||
|
||||
Reference in New Issue
Block a user