convert to iterator
This commit is contained in:
parent
79426d2a8c
commit
57f48797a8
@ -89,8 +89,7 @@ function run() {
|
||||
if (file_glob === "true") {
|
||||
const files = glob.sync(file);
|
||||
if (files.length > 0) {
|
||||
for (let i = 0; i < files.length; i += 1) {
|
||||
const file = files[i];
|
||||
for (let file of files) {
|
||||
const asset_name = path.basename(file);
|
||||
yield upload_to_release(release, file, asset_name, tag, overwrite, octokit, context);
|
||||
}
|
||||
|
@ -83,8 +83,7 @@ async function run() {
|
||||
if (file_glob === "true") {
|
||||
const files = glob.sync(file);
|
||||
if (files.length > 0) {
|
||||
for (let i = 0; i < files.length; i += 1) {
|
||||
const file = files[i];
|
||||
for (let file of files) {
|
||||
const asset_name = path.basename(file);
|
||||
await upload_to_release(release, file, asset_name, tag, overwrite, octokit, context);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user