Skip to content

Commit

Permalink
Update strip-python-notebooks.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
vsyrgkanis committed Jul 22, 2024
1 parent d75604a commit 51104f0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/strip-python-notebooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,13 @@ jobs:
id: verify_diff
run: |
git pull
dirs=(PM1 PM2 PM3 PM4 PM5 CM1 CM2 CM3 AC1 AC2 T)
for dir in "${dirs[@]}"; do
# Check if directory exists
if [ -d "$dir" ]; then
echo "Processing directory: $dir"
if git diff --quiet "$dir"/*.ipynb "$dir"/*.irnb; then
echo "Found changes in directory: $dir"
echo "changed=true" >> $GITHUB_OUTPUT
break 1
fi
Expand All @@ -81,6 +83,7 @@ jobs:
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git pull
dirs=(PM1 PM2 PM3 PM4 PM5 CM1 CM2 CM3 AC1 AC2 T)
for dir in "${dirs[@]}"; do
# Check if directory exists
if [ -d "$dir" ]; then
Expand Down

0 comments on commit 51104f0

Please sign in to comment.