mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-25 10:42:19 -05:00
ci: do not include deleted files in the changed builds
This commit is contained in:
parent
51aa7ed691
commit
bf5bace92e
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
IFS=$'\n'
|
IFS=$'\n'
|
||||||
filenames="$(git diff-tree -r --no-commit-id --name-only HEAD "$1" | ( grep -P '^(xep-[0-9]{4}|inbox/[^/]+)\.xml$' || true))"
|
filenames="$(git diff-tree -r --no-commit-id --name-status "$1" HEAD | ( grep -P '^[AM]\t(xep-[0-9]{4}|inbox/[^/]+)\.xml$' || true) | cut -f2)"
|
||||||
if [ -z "$filenames" ]; then
|
if [ -z "$filenames" ]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user