Skip to content

Commit 91a42f5

Browse files
author
Michael Kaiser
committed
Fix build-pull-request to ignore deleted files
1 parent c10d1e4 commit 91a42f5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/build-pull-request.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,14 @@ jobs:
3030
with:
3131
language: ${{ matrix.language }}
3232

33-
# Get the list of changed files, excluding Markdown files
33+
# Get the list of changed files, excluding Markdown files and deleted files
3434
- name: Get changed files
3535
id: changed-files
3636
uses: tj-actions/changed-files@27ae6b33eaed7bf87272fdeb9f1c54f9facc9d99
3737
with:
3838
files: ${{ matrix.language }}/**
3939
files_ignore: '**/*.md'
40+
files_separator: ' '
4041

4142
# Build the changed files for the specified language
4243
- name: Build changed files
@@ -73,7 +74,8 @@ jobs:
7374
# Create an array to store directories to be built
7475
apps_to_build=()
7576
76-
files=(${{ steps.changed-files.outputs.all_modified_files }})
77+
# Use only added and modified files, ignoring deleted files
78+
files=(${{ steps.changed-files.outputs.added_files }} ${{ steps.changed-files.outputs.modified_files }})
7779
7880
# Check the directories of each changed file for cdk.json
7981
for file in "${files[@]}"; do

0 commit comments

Comments
 (0)