diff --git a/.github/workflows/sensemaker-cron.yml b/.github/workflows/sensemaker-cron.yml index 52ffe0dc4..7cd79dd61 100644 --- a/.github/workflows/sensemaker-cron.yml +++ b/.github/workflows/sensemaker-cron.yml @@ -33,6 +33,12 @@ jobs: url: https://preprod.pol.is/api/v3/reportExport/r7kfpvrhdpyykbhnirtcd/comment-groups.csv target-path: sensemaking-tools/data/ + - name: Modify CSV headers + run: | + file="comment-groups.csv" \ + new_header="comment-id,comment_text,total-votes,total-agrees,total-disagrees,total-passes,group-a-votes,group-0-agree-count,group-0-disagree-count,group-0-pass-count,group-b-votes,group-1-agree-count,group-1-disagree-count,group-1-pass-count" \ + sed -i "1s/.*/$new_header/" "$file" + - name: List Files run: ls -l sensemaking-tools/