Skip to content

Commit

Permalink
Fix removed function
Browse files Browse the repository at this point in the history
  • Loading branch information
bbhtt committed Jul 29, 2024
1 parent a5a8b1b commit a698041
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions flatpak-builder/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

const core = __nccwpck_require__(62949)
const exec = __nccwpck_require__(67957)
const artifact = __nccwpck_require__(31189)
const {DefaultArtifactClient} = __nccwpck_require__(31189)
const cache = __nccwpck_require__(90162)
const path = __nccwpck_require__(71017)
const fs = (__nccwpck_require__(57147).promises)
Expand Down Expand Up @@ -396,11 +396,11 @@ const run = async (config) => {
return
}

const artifactClient = artifact.create()
const artifact = new DefaultArtifactClient()
core.info('Uploading artifact...')
// Append the arch to the bundle name to prevent conflicts in multi-arch jobs
const bundleName = config.bundle.replace('.flatpak', '') + `-${config.arch}.flatpak`
return artifactClient.uploadArtifact(bundleName, [config.bundle], '.', {
return artifact.uploadArtifact(bundleName, [config.bundle], '.', {
continueOnError: false
})
})
Expand Down
6 changes: 3 additions & 3 deletions flatpak-builder/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const core = require('@actions/core')
const exec = require('@actions/exec')
const artifact = require('@actions/artifact')
const {DefaultArtifactClient} = require('@actions/artifact')

Check failure on line 3 in flatpak-builder/index.js

View workflow job for this annotation

GitHub Actions / Lint

A space is required after '{'

Check failure on line 3 in flatpak-builder/index.js

View workflow job for this annotation

GitHub Actions / Lint

A space is required before '}'

Check failure on line 3 in flatpak-builder/index.js

View workflow job for this annotation

GitHub Actions / Lint

A space is required after '{'

Check failure on line 3 in flatpak-builder/index.js

View workflow job for this annotation

GitHub Actions / Lint

A space is required before '}'
const cache = require('@actions/cache')
const path = require('path')
const fs = require('fs').promises
Expand Down Expand Up @@ -390,11 +390,11 @@ const run = async (config) => {
return
}

const artifactClient = artifact.create()
const artifact = new DefaultArtifactClient()
core.info('Uploading artifact...')
// Append the arch to the bundle name to prevent conflicts in multi-arch jobs
const bundleName = config.bundle.replace('.flatpak', '') + `-${config.arch}.flatpak`
return artifactClient.uploadArtifact(bundleName, [config.bundle], '.', {
return artifact.uploadArtifact(bundleName, [config.bundle], '.', {
continueOnError: false
})
})
Expand Down

0 comments on commit a698041

Please sign in to comment.