Skip to content

Commit

Permalink
ci: ignoring files that were deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
nishaq503 committed Jul 18, 2024
1 parent e603720 commit d004ef8
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/package-filter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,17 @@ jobs:
echo "The comparison point is ${comparison_point}"
# Get the changed files
changed_files=$(git diff --name-only ${comparison_point}...)
# the `--diff-filter=ACMR` flag filters out deleted files. The filters are as follows:
# A: Added
# C: Copied
# M: Modified
# R: Renamed
# D: Deleted
# T: Type changed (for example, regular file or symlink or submodule)
# U: Unmerged
# X: Unknown
# B: Broken pairing
changed_files=$(git diff --diff-filter=ACMR --name-only ${comparison_point}...)
# echo the changed files
echo "The changed files are $changed_files"
Expand Down

0 comments on commit d004ef8

Please sign in to comment.