Skip to content

Commit

Permalink
🐛 more debugging on comment body
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-bierman committed May 15, 2024
1 parent f7a82c5 commit 48a4799
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/comment-workflow-status.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,14 @@ jobs:
});
const filteredRuns = response.data.workflow_runs.filter(run => workflows.includes(run.name));
return { filteredRuns: filteredRuns };
return filteredRuns;
- name: Create Comment Body
id: create-table
uses: actions/github-script@v6
env:
WORKFLOW_RESULTS: ${{ steps.fetch-workflows.outputs.result }}
with:
script: |
const workflows = JSON.parse('${{ env.WORKFLOW_RESULTS }}');
const workflows = JSON.parse('${{ steps.fetch-workflows.outputs.result }}');
let commentBody = "## Workflow Status\n| Workflow | Status | Details |\n|----------|--------|---------|\n";
workflows.forEach(workflow => {
Expand Down

0 comments on commit 48a4799

Please sign in to comment.