Skip to content

Refactoring

Refactoring #3

name: Sort whitespaces
on:
push:
branches:
- main
- develop
pull_request:
jobs:
sort_whitespaces:
name: Sort whitespaces
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Sort whitelists
run: |
for file in "whitelist.txt" "hyperstyle/src/python/review/inspectors/flake8/whitelist.txt"
do
LC_ALL=C sort $file -o $file
done
- name: Commit sorted whitelists
uses: EndBug/[email protected]
with:
add: "['whitelist.txt', 'hyperstyle/src/python/review/inspectors/flake8/whitelist.txt']"
message: 'Sort whitelists (Github Actions)'