From 0f1638545c46c7d4371390ad04436de7a050f738 Mon Sep 17 00:00:00 2001 From: Terts Diepraam Date: Sun, 9 Oct 2022 11:22:53 +0200 Subject: [PATCH] CI: Fix up JS syntax in GnuComment --- .github/workflows/GnuComment.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/GnuComment.yml b/.github/workflows/GnuComment.yml index fee3303fb..f74c022ed 100644 --- a/.github/workflows/GnuComment.yml +++ b/.github/workflows/GnuComment.yml @@ -16,25 +16,25 @@ jobs: uses: actions/github-script@v3.1.0 with: script: | - # List all artifacts from GnuTests + // List all artifacts from GnuTests var artifacts = await github.actions.listWorkflowRunArtifacts({ - owner: context.repo.owner, - repo: context.repo.repo, - run_id: ${{github.event.workflow_run.id }}, + owner: context.repo.owner, + repo: context.repo.repo, + run_id: ${{ github.event.workflow_run.id }}, }); - # Download the "comment" artifact, which contains a PR number (NR) and result.txt + // Download the "comment" artifact, which contains a PR number (NR) and result.txt var matchArtifact = artifacts.data.artifacts.filter((artifact) => { return artifact.name == "comment" })[0]; var download = await github.actions.downloadArtifact({ - owner: context.repo.owner, - repo: context.repo.repo, - artifact_id: matchArtifact.id, - archive_format: 'zip', + owner: context.repo.owner, + repo: context.repo.repo, + artifact_id: matchArtifact.id, + archive_format: 'zip', }); var fs = require('fs'); - fs.writeFileSync('${{github.workspace}}/comment.zip', Buffer.from(download.data)); + fs.writeFileSync('${{ github.workspace }}/comment.zip', Buffer.from(download.data)); - run: unzip comment.zip - name: 'Comment on PR'