File tree 1 file changed +5
-0
lines changed
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import os from 'os';
22
22
import path from 'path' ;
23
23
import { CreateArtifactRequest , FinalizeArtifactRequest , StringValue } from '@actions/artifact/lib/generated' ;
24
24
import { internalArtifactTwirpClient } from '@actions/artifact/lib/internal/shared/artifact-twirp-client' ;
25
+ import { isGhes } from '@actions/artifact/lib/internal/shared/config' ;
25
26
import { getBackendIdsFromToken } from '@actions/artifact/lib/internal/shared/util' ;
26
27
import { getExpiration } from '@actions/artifact/lib/internal/upload/retention' ;
27
28
import { InvalidResponseError , NetworkError } from '@actions/artifact' ;
@@ -122,6 +123,10 @@ export class GitHub {
122
123
}
123
124
124
125
public static async uploadArtifact ( opts : UploadArtifactOpts ) : Promise < UploadArtifactResponse > {
126
+ if ( isGhes ( ) ) {
127
+ throw new Error ( '@actions/artifact v2.0.0+ is currently not supported on GHES.' ) ;
128
+ }
129
+
125
130
const artifactName = path . basename ( opts . filename ) ;
126
131
const backendIds = getBackendIdsFromToken ( ) ;
127
132
const artifactClient = internalArtifactTwirpClient ( ) ;
You can’t perform that action at this time.
0 commit comments