|
27 | 27 | ls $GITHUB_WORKSPACE |
28 | 28 |
|
29 | 29 | # Create new output file |
30 | | - echo "Name,Description,CRAN link,CRAN version, CRAN license,GitHub link,Last commit,GitHub version,GitHub license,Github owner" > output.csv |
| 30 | + echo "Name,Description,CRAN link,CRAN version, CRAN license,GitHub link,Last commit,GitHub version,GitHub license,Github owner,GitHub code of conduct" > output.csv |
31 | 31 | |
32 | 32 | while IFS="," read -r name description gh_link cran_link |
33 | 33 | do |
|
79 | 79 | gh_owner=$(cat gh_repo_info.json | jq '.owner.login') |
80 | 80 | echo "GitHub owner: $gh_owner" |
81 | 81 |
|
| 82 | + gh_code_of_conduct=$(cat gh_repo_info.json | jq '.codeOfConduct') |
| 83 | + echo "GitHub code of conduct: $gh_code_of_conduct" |
| 84 | +
|
82 | 85 | # Tidy up |
83 | 86 | cd .. |
84 | 87 | rm -rf $gh_repo_name |
@@ -119,14 +122,16 @@ jobs: |
119 | 122 | echo "CRAN license: $cran_license" |
120 | 123 |
|
121 | 124 | # write to file |
122 | | - echo "$name,$description,$cran_link,$cran_version,$cran_license,$gh_link,$gh_last_commit,$gh_last_release,$gh_license,$gh_owner" >> output.csv |
| 125 | + echo "$name,$description,$cran_link,$cran_version,$cran_license,$gh_link,$gh_last_commit,$gh_last_release,$gh_license,$gh_owner,$gh_code_of_conduct" >> output.csv |
123 | 126 |
|
124 | 127 | echo "-----------------------------------" |
125 | 128 |
|
126 | 129 | done < <(tail -n +2 packages.csv) |
127 | 130 |
|
128 | 131 | mkdir gh-pages |
129 | 132 | cp output.csv gh-pages/ |
| 133 | +
|
| 134 | + cat output.csv |
130 | 135 | |
131 | 136 | env: |
132 | 137 | GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
|
0 commit comments