Skip to content

Commit 5604053

Browse files
committed
fix(workflow): rename variable for clarity in markdown update workflow
1 parent ba7ed4c commit 5604053

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

.github/workflows/on-markdown-update.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
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'

0 commit comments

Comments
 (0)