Skip to content

Commit

Permalink
sort script still not running fine
Browse files Browse the repository at this point in the history
  • Loading branch information
spirillen committed Jan 19, 2025
1 parent c13cb93 commit 30c055c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/sort.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,8 @@ jobs:
- name: Check for changes in source folder
id: check_changes
run: |
if git diff --name-only HEAD~1 HEAD | grep '^source/'; then
echo "changes=true" >> $GITHUB_ENV
else
echo "changes=false" >> $GITHUB_ENV
fi
git diff --name-only HEAD^ HEAD | grep -E '^source/'
echo "::set-output name=changed_files::$(git diff --name-only HEAD^ HEAD | grep -E '^source/')"
- name: Sort source files
if: env.changes == 'true'
Expand Down

0 comments on commit 30c055c

Please sign in to comment.