Add Bluesky handle for Cheuk #36
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | ||
pull_request: | ||
paths: | ||
- 'blogs/**' | ||
name: Validate JSON | ||
jobs: | ||
validate: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 5 | ||
- uses: r-lib/actions/setup-pandoc@v1 | ||
- uses: r-lib/actions/setup-r@v2 | ||
- name: Get changed files | ||
id: changed-files | ||
uses: tj-actions/changed-files@v41 | ||
with: | ||
files: blogs/ | ||
- name: Cleanup json template comments | ||
run: | | ||
for f in ${{ steps.changed-files.outputs.all_changed_files }}; do | ||
echo Cleaning $f | ||
sed -i .bk 's.//required..g' $f | ||
rm ${f}.bk | ||
done | ||
- name: Install R dependencies | ||
run: | | ||
install.packages(c("jsonlite", "jsonvalidate", "rmarkdown", "here"), | ||
repos = "https://cloud.r-project.org/") | ||
shell: Rscript {0} | ||
- name: Validate jsons | ||
run: Rscript 'scripts/validate_jsons.R' | ||