Skip to content

Commit

Permalink
Add comments about removing artifact-legacy once supported on GHES
Browse files Browse the repository at this point in the history
  • Loading branch information
angelapwen committed Sep 13, 2024
1 parent 67ed331 commit 3641023
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/debug-artifacts.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/debug-artifacts.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions lib/start-proxy-action-post.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/start-proxy-action-post.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/debug-artifacts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ export async function uploadDebugArtifacts(
}

try {
// NB: Once `@actions/artifact@v2` is supported on GHES, we can remove usage of `artifact-legacy`.
if (ghVariant === GitHubVariant.GHES) {
await artifactLegacy.create().uploadArtifact(
sanitizeArifactName(`${artifactName}${suffix}`),
Expand Down
1 change: 1 addition & 0 deletions src/start-proxy-action-post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ async function runWrapper() {
return;
}
try {
// NB: Once `@actions/artifact@v2` is supported on GHES, we can remove usage of `artifact-legacy`.
if (config.gitHubVersion.type === GitHubVariant.GHES) {
await artifactLegacy
.create()
Expand Down

0 comments on commit 3641023

Please sign in to comment.