First crack at check rmd renders for PRs to course materials is here.
Currently, it's not working properly because git diff-tree --no-commit-id --name-only -r HEAD doesn't yield the expected result when running the action. This is evidenced by print(changed_rmd_files) yielding character(0) when, in reality, an Rmd file was changed in the PR.
@jimhester suggested this is likely because the pull request is likely checked out as a single commit without history.
Need to still find an alternative to git diff-tree --no-commit-id --name-only -r HEAD that works in this context.
First crack at check rmd renders for PRs to course materials is here.
Currently, it's not working properly because
git diff-tree --no-commit-id --name-only -r HEAD
doesn't yield the expected result when running the action. This is evidenced byprint(changed_rmd_files)
yieldingcharacter(0)
when, in reality, an Rmd file was changed in the PR.@jimhester suggested this is likely because the pull request is likely checked out as a single commit without history.
Need to still find an alternative to
git diff-tree --no-commit-id --name-only -r HEAD
that works in this context.Closes #103.