Skip to content

Commit

Permalink
Update transform-notebooks.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
vsyrgkanis authored Jul 29, 2024
1 parent 66f458f commit b35567d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/transform-notebooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- gen-Rmd

concurrency:
group: strip-transform-notebooks-${{ github.ref }}
Expand Down Expand Up @@ -83,8 +84,12 @@ jobs:
# Check if directory exists
if [ -d "$dir" ]; then
echo "Processing directory: $dir"
git add "$dir"/*.ipynb "$dir"/*.irnb "$dir"/*.Rmd
git diff "$dir"/*.ipynb "$dir"/*.irnb "$dir"/*.Rmd
CHANGES=$(git status --porcelain)
if git diff --quiet "$dir"/*.ipynb "$dir"/*.irnb "$dir"/*.Rmd; then
if [ -z "$CHANGES" ]; then
# if git diff --quiet "$dir"/*.ipynb "$dir"/*.irnb "$dir"/*.Rmd; then
echo "No changes were found"
else
echo "Found changes in directory: $dir"
Expand Down

0 comments on commit b35567d

Please sign in to comment.