Merge pull request #3 from abhishzk/main-update-experience-add-motion… #22
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 | |
jobs: | |
format: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 18.x | |
- name: npm install | |
run: | | |
npm install | |
- name: format code | |
run: | | |
npm run format | |
- name: push formatted code | |
run: | | |
git config --global user.name "abhishzk" github-actions | |
git config --global user.email "[email protected]" [email protected] | |
git add --all | |
git diff-index --quiet HEAD || git commit -m "Format Code" | |
git pull | |
git push |