From 5a3bd74cfae36475d6697d3b0073e98fdaa64c2c Mon Sep 17 00:00:00 2001 From: Sergiu Deitsch Date: Fri, 19 Nov 2021 22:01:06 +0100 Subject: [PATCH] ci: replaced forEach by a loop --- .github/workflows/coveralls.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/coveralls.yml b/.github/workflows/coveralls.yml index 663e50e..2db00c3 100644 --- a/.github/workflows/coveralls.yml +++ b/.github/workflows/coveralls.yml @@ -24,7 +24,7 @@ jobs: run_id: ${{github.event.workflow_run.id}}, }); var matchArtifacts = artifacts.data.artifacts; - matchArtifacts.forEach(artifact => { + for (artifact of matchArtifacts) { var download = await github.actions.downloadArtifact({ owner: context.repo.owner, repo: context.repo.repo, @@ -33,7 +33,7 @@ jobs: }); var fs = require('fs'); fs.writeFileSync('${{github.workspace}}/' + artifact.name + '.zip', Buffer.from(download.data)); - }); + } - name: Unpack artifacts run: |