mirror of
https://github.com/conan-io/conan-center-index.git
synced 2025-08-03 17:24:11 +00:00
(#15606) action: pr_changed_files: exclude removed files
unblocks conan-io/conan-center-index#15314 fixes conan-io/conan-center-index#15605
This commit is contained in:
2
.github/actions/pr_changed_files/action.yml
vendored
2
.github/actions/pr_changed_files/action.yml
vendored
@@ -37,6 +37,8 @@ runs:
|
||||
res = subprocess.run(["gh", "api", "/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/files", "--paginate"], capture_output=True, check=True)
|
||||
files = []
|
||||
for f in json.loads(res.stdout):
|
||||
if f["status"] == "removed":
|
||||
continue
|
||||
filename = Path(f["filename"]).parts
|
||||
for pattern in patterns:
|
||||
if len(pattern) != len(filename):
|
||||
|
Reference in New Issue
Block a user