Skip to content

Commit

Permalink
modify csv
Browse files Browse the repository at this point in the history
  • Loading branch information
tevko committed Dec 20, 2024
1 parent 0de5f6a commit 378276e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/sensemaker-cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/

Expand Down

0 comments on commit 378276e

Please sign in to comment.