Skip to content

Commit

Permalink
feat: add support for listing deleted submodules. (#1001)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Feb 26, 2023
1 parent e26c036 commit 3ee6abf
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion get-changed-paths.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,14 @@ function get_diff() {
echo "::warning::Failed to get changed files for submodule ($sub) between: ${sub_commit_pre:-4b825dc642cb6eb9a060e54bf8d69288fbee4904} ${sub_commit_cur}. Please ensure that submodules are initialized and up to date. See: https://github.com/actions/checkout#usage" >&2
}
fi
done < <(git submodule | awk '{print $2}')
done < <(git submodule status --recursive | grep -v "^-" | awk '{print $2}')


if [[ "$filter" == "D" ]]; then
while read -r sub; do
echo "$sub"
done < <(git submodule status --recursive | grep -e "^-" | awk '{print $2}')
fi

git diff --diff-filter="$filter" --name-only --ignore-submodules=all "$base$DIFF$sha" && exit_status=$? || exit_status=$?

Expand Down

0 comments on commit 3ee6abf

Please sign in to comment.