Skip to content

Commit

Permalink
Fix artifact use
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoColomb authored Mar 26, 2024
1 parent a0245d4 commit 6f5fdab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions action.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const path = require('path')
const core = require('@actions/core')
const tc = require('@actions/tool-cache')
const exec = require('@actions/exec')
const artifact = require('@actions/artifact')
const { DefaultArtifactClient } = require('@actions/artifact')

async function action () {
const command = core.getInput('command', { required: true })
Expand Down Expand Up @@ -101,7 +101,7 @@ async function action () {
core.endGroup()

// ------
await artifact.create().uploadArtifact(
await (new DefaultArtifactClient()).uploadArtifact(
`sct-${command}-results`,
[
path.join(__dirname, '../sct-results.json'),
Expand Down

0 comments on commit 6f5fdab

Please sign in to comment.