File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change 4242 # Get the list of deleted files for the current mask
4343 current_deleted_files=$(git diff --name-status ${{ github.event.before }} ${{ github.event.after }} | grep '^D' | grep "${mask}" | awk '{print $2}')
4444 # Check if there are any changes for the current mask
45- current_any_changes =$(git diff --name-status ${{ github.event.before }} ${{ github.event.after }} | grep "${mask}" | wc -l)
45+ current_any_changed =$(git diff --name-status ${{ github.event.before }} ${{ github.event.after }} | grep "${mask}" | wc -l)
4646
4747 # Append the current changed files to the overall list
4848 if [ -n "$current_changed_files" ]; then
@@ -55,21 +55,15 @@ jobs:
5555 fi
5656
5757 # Set any_changes to true if there are any changes for the current mask
58- if [ "$current_any_changes " -gt 0 ]; then
58+ if [ "$current_any_changed " -gt 0 ]; then
5959 any_changes="true"
6060 fi
6161 done
6262
6363 # Set the outputs
6464 echo "changed_files=${changed_files}" >> $GITHUB_OUTPUT
6565 echo "deleted_files=${deleted_files}" >> $GITHUB_OUTPUT
66- echo "any_changes=${any_changes}" >> $GITHUB_OUTPUT
67-
68- - name : List changed files
69- run : |
70- for file in ${{ steps.changed-markdown-files.outputs.changed_files }}; do
71- echo "$file was changed"
72- done
66+ echo "any_changed=${any_changes}" >> $GITHUB_OUTPUT
7367
7468 - name : Install python3
7569 if : steps.changed-markdown-files.outputs.any_changed == 'true'
You can’t perform that action at this time.
0 commit comments