Skip to content

Commit

Permalink
Merge pull request levxyca#263 from george-gca/fix_sort_data
Browse files Browse the repository at this point in the history
Resolvido bug ao ordenar arquivos com dados
  • Loading branch information
levxyca authored Nov 12, 2024
2 parents b4486f7 + daa8dde commit 4c9e26d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/sort-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,26 @@ jobs:
id: changed-data
uses: tj-actions/changed-files@v45
with:
files: assets/data/**.{json}
files: assets/data/**.json

- name: Sort data files
- name: Setup Python
if: steps.changed-data.outputs.any_changed == 'true'
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Sort data files
if: steps.changed-data.outputs.any_changed == 'true'
env:
ALL_CHANGED_FILES: ${{ steps.changed-data.outputs.all_changed_files }}
run: |
for file in $ALL_CHANGED_FILES; do
echo "Formatting $file"
python3 format_data.py -f $file
done
# commit all changed files back to the repository
- uses: stefanzweifel/git-auto-commit-action@v5
if: steps.changed-data.outputs.any_changed == 'true'
with:
commit_message: Sort data files

0 comments on commit 4c9e26d

Please sign in to comment.