chore: sort contributors list #669
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: π Format | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
jobs: | |
format: | |
if: github.repository == 'remix-run/react-router' | |
runs-on: ubuntu-latest | |
steps: | |
- name: π Cancel Previous Runs | |
uses: styfle/cancel-workflow-action@0.11.0 | |
- name: β¬οΈ Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.FORMAT_PAT }} | |
- name: β Setup node | |
uses: actions/setup-node@v3 | |
with: | |
cache: yarn | |
node-version-file: ".nvmrc" | |
- name: π₯ Install deps | |
run: yarn --frozen-lockfile | |
- name: π Format | |
run: yarn format | |
- name: πͺ Commit | |
run: | | |
git config --local user.email "hello@remix.run" | |
git config --local user.name "Remix Run Bot" | |
git add . | |
if [ -z "$(git status --porcelain)" ]; then | |
echo "πΏ no formatting changed" | |
exit 0 | |
fi | |
git commit -m "chore: format" | |
git push | |
echo "πΏ pushed formatting changes https://github.com/$GITHUB_REPOSITORY/commit/$(git rev-parse HEAD)" |