Правит поля updatedAt и createdAt #9510
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: EditorConfig | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- id: files | |
uses: Ana06/[email protected] | |
- name: Проверка линтером | |
run: | | |
npm install editorconfig-checker --global | |
config=.editorconfig | |
for changed_file in ${{ steps.files.outputs.all }}; do | |
if [ $changed_file == $config ] | |
then | |
echo "Проверка для всех файлов" | |
editorconfig-checker | |
break | |
else | |
echo "Проверка для ${changed_file}" | |
editorconfig-checker ${changed_file} | |
fi | |
done |