Skip to content

Commit

Permalink
(actions) also print new files
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthijsBurgh committed Feb 3, 2022
1 parent 2700262 commit 1fe1874
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,11 @@ jobs:
if [ -n "$changed_build_files" ]
then
echo -e "\e[1m\e[31mBuild folder is out-of-sync with library. Build library, npm run build, and (ammend) commit\e[0m"
echo -e "\e[1m\e[31mChanged files: $changed_build_files"
echo -e "\e[1m\e[31mChanged files: $changed_build_files\e[0m"
echo -e "\e[1m\e[31mDiff of current files:\e[0m"
git diff HEAD -- ${{ matrix.package }}/dist
echo -e "\e[1m\e[31mNew files:\e[0m"
git ls-files -o --exclude-standard -- ${{ matrix.package }}/dist/* | xargs git add; git diff --staged -- ${{ matrix.package }}/dist
exit 1
else
echo -e "\e[1m\e[32mBuild folder is up-to-date with library\e[0m"
Expand Down

0 comments on commit 1fe1874

Please sign in to comment.