Skip to content

Commit

Permalink
Print interpolated assets (fixes #898)
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Jul 16, 2022
1 parent 2d13ba4 commit 31068de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions lib/plugin/github/GitHub.js
Expand Up @@ -280,14 +280,14 @@ class GitHub extends Release {
const context = this.config.getContext();
const { isDryRun } = this.config;

this.log.exec('octokit repos.uploadReleaseAssets', assets, { isDryRun });
const patterns = _.castArray(assets).map(pattern => format(pattern, context));

this.log.exec('octokit repos.uploadReleaseAssets', patterns, { isDryRun });

if (!assets || !isReleased || isDryRun) {
return true;
}

const patterns = _.castArray(assets).map(pattern => format(pattern, context));

return globby(patterns).then(files => {
if (!files.length) {
this.log.warn(`octokit repos.uploadReleaseAssets: did not find "${assets}" relative to ${process.cwd()}`);
Expand Down
6 changes: 3 additions & 3 deletions lib/plugin/gitlab/GitLab.js
Expand Up @@ -253,14 +253,14 @@ class GitLab extends Release {
const { isDryRun } = this.config;
const context = this.config.getContext();

this.log.exec('gitlab releases#uploadAssets', assets, { isDryRun });
const patterns = _.castArray(assets).map(pattern => format(pattern, context));

this.log.exec('gitlab releases#uploadAssets', patterns, { isDryRun });

if (!assets || isDryRun) {
return noop;
}

const patterns = _.castArray(assets).map(pattern => format(pattern, context));

return globby(patterns).then(files => {
if (!files.length) {
this.log.warn(`gitlab releases#uploadAssets: could not find "${assets}" relative to ${process.cwd()}`);
Expand Down

0 comments on commit 31068de

Please sign in to comment.