Browse Source

fix(check-prettier): don't check removed files

pull/2651/head
Harry 4 months ago committed by GitHub
parent
commit
641dd957d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      .github/workflows/ga-misc-check-prettier.yml

2
.github/workflows/ga-misc-check-prettier.yml

@ -20,7 +20,7 @@ jobs:
- name: 🔍 Get all changed *.md file(s)
id: changed-md
run: |
echo "changed_files=$(git diff --name-only --merge-base origin/master | grep "\.md$" | xargs)" >> $GITHUB_OUTPUT
echo "changed_files=$(git diff --name-only --diff-filter=ACMRT --merge-base origin/master | grep "\.md$" | xargs)" >> $GITHUB_OUTPUT
- name: Run step if any *.md file(s) changed
if: steps.changed-md.outputs.changed_files != ''

Loading…
Cancel
Save