File tree Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -50,13 +50,11 @@ runs:
50
50
DOWNLOAD=$GITHUB_ACTION_PATH/src/Download.java
51
51
if [ ! -z "${{ inputs.uri }}" ]; then
52
52
$JAVA \
53
- -DeprecatedSetOutput=true \
54
53
-Dinstall-as-version="${{ inputs.install-as-version }}" \
55
54
$DOWNLOAD \
56
55
${{ inputs.uri }}
57
56
else
58
57
$JAVA \
59
- -DeprecatedSetOutput=true \
60
58
-Dinstall-as-version="${{ inputs.install-as-version }}" \
61
59
$DOWNLOAD \
62
60
${{ inputs.website }} \
Original file line number Diff line number Diff line change @@ -230,19 +230,15 @@ Optional<String> findRemoteChecksum(String checksum) throws Exception {
230
230
static class GitHub {
231
231
/** Sets an action's output parameter. */
232
232
static void setOutput (String name , Object value ) {
233
- if (Boolean .getBoolean (/*-D*/ "eprecatedSetOutput" )) {
234
- System .out .printf ("::set-output name=%s::%s%n" , name , value );
235
- return ;
236
- }
237
233
if (name .isBlank () || value .toString ().isBlank ()) { // implicit null checks included
238
234
throw new IllegalArgumentException ("name or value are blank: " + name + "=" + value );
239
235
}
240
- var githubEnv = System .getenv ("GITHUB_ENV " );
241
- if (githubEnv == null ) {
242
- throw new AssertionError ("No such environment variable: GITHUB_ENV " );
236
+ var githubOutput = System .getenv ("GITHUB_OUTPUT " );
237
+ if (githubOutput == null ) {
238
+ throw new AssertionError ("No such environment variable: GITHUB_OUTPUT " );
243
239
}
244
240
try {
245
- var file = Path .of (githubEnv );
241
+ var file = Path .of (githubOutput );
246
242
if (file .getParent () != null ) Files .createDirectories (file .getParent ());
247
243
var lines = (name + "=" + value ).lines ().toList ();
248
244
if (lines .size () != 1 ) {
You can’t perform that action at this time.
0 commit comments