Skip to content

Commit 583113d

Browse files
authored
Updated workflows to run on file delete too (#2860)
1 parent 665a9e4 commit 583113d

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

.github/workflows/check-files.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -88,46 +88,46 @@ jobs:
8888
8989
- name: Run step if any file(s) changed
9090
id: all
91-
if: steps.changed-files-specific.outputs.any_changed == 'true'
91+
if: steps.changed-files-specific.outputs.any_modified == 'true'
9292
run: |
9393
echo "One or more files have changed."
9494
95-
count="$(grep -oE "composer.*" <<< "${{ steps.changed-files-specific.outputs.all_changed_files }}" | wc -l)"
95+
count="$(grep -oE "composer.*" <<< "${{ steps.changed-files-specific.outputs.all_modified_files }}" | wc -l)"
9696
echo "$count Composer file(s) changed"
9797
echo "composer=$count" >> $GITHUB_OUTPUT
9898
99-
count="$(grep -oE "*.php" <<< "${{ steps.changed-files-specific.outputs.all_changed_files }}" | wc -l)"
99+
count="$(grep -oE "*.php" <<< "${{ steps.changed-files-specific.outputs.all_modified_files }}" | wc -l)"
100100
echo "$count PHP file(s) changed"
101101
echo "php=$count" >> $GITHUB_OUTPUT
102102
103-
count="$(grep -oE "*.xml" <<< "${{ steps.changed-files-specific.outputs.all_changed_files }}" | wc -l)"
103+
count="$(grep -oE "*.xml" <<< "${{ steps.changed-files-specific.outputs.all_modified_files }}" | wc -l)"
104104
echo "$count XML file(s) changed"
105105
echo "xml=$count" >> $GITHUB_OUTPUT
106106
107-
count="$(grep -oE ".github/workflows/**" <<< "${{ steps.changed-files-specific.outputs.all_changed_files }}" | wc -l)"
107+
count="$(grep -oE ".github/workflows/**" <<< "${{ steps.changed-files-specific.outputs.all_modified_files }}" | wc -l)"
108108
echo "$count Workflow file(s) changed"
109109
echo "workflow=$count" >> $GITHUB_OUTPUT
110110
111-
count="$(grep -oE "**phpcs**" <<< "${{ steps.changed-files-specific.outputs.all_changed_files }}" | wc -l)"
111+
count="$(grep -oE "**phpcs**" <<< "${{ steps.changed-files-specific.outputs.all_modified_files }}" | wc -l)"
112112
echo "$count PHPCS file(s) changed"
113113
echo "phpcs=$count" >> $GITHUB_OUTPUT
114114
115-
count="$(grep -oE "**php-cs-fixer**" <<< "${{ steps.changed-files-specific.outputs.all_changed_files }}" | wc -l)"
115+
count="$(grep -oE "**php-cs-fixer**" <<< "${{ steps.changed-files-specific.outputs.all_modified_files }}" | wc -l)"
116116
echo "$count PHP-CS-Fixer file(s) changed"
117117
echo "php-cs-fixer=$count" >> $GITHUB_OUTPUT
118118
119-
count="$(grep -oE "**phpstan**" <<< "${{ steps.changed-files-specific.outputs.all_changed_files }}" | wc -l)"
119+
count="$(grep -oE "**phpstan**" <<< "${{ steps.changed-files-specific.outputs.all_modified_files }}" | wc -l)"
120120
echo "$count PHPStan file(s) changed"
121121
echo "phpstan=$count" >> $GITHUB_OUTPUT
122122
123-
count="$(grep -oE "dev/tests/" <<< "${{ steps.changed-files-specific.outputs.all_changed_files }}" | wc -l)"
123+
count="$(grep -oE "dev/tests/" <<< "${{ steps.changed-files-specific.outputs.all_modified_files }}" | wc -l)"
124124
echo "$count UnitTest test file(s) changed"
125125
echo "phpunit-test=$count" >> $GITHUB_OUTPUT
126126
127-
count="$(grep -oE "dev/phpunit*" <<< "${{ steps.changed-files-specific.outputs.all_changed_files }}" | wc -l)"
127+
count="$(grep -oE "dev/phpunit*" <<< "${{ steps.changed-files-specific.outputs.all_modified_files }}" | wc -l)"
128128
echo "$count UnitTest file(s) changed"
129129
echo "phpunit=$count" >> $GITHUB_OUTPUT
130130
131-
count="$(grep -oE "dev/sonar*" <<< "${{ steps.changed-files-specific.outputs.all_changed_files }}" | wc -l)"
131+
count="$(grep -oE "dev/sonar*" <<< "${{ steps.changed-files-specific.outputs.all_modified_files }}" | wc -l)"
132132
echo "$count Sonar file(s) changed"
133133
echo "sonar=$count" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)