Skip to content

Commit

Permalink
fix(ci/cd): remove python and sh
Browse files Browse the repository at this point in the history
  • Loading branch information
HarryVasanth authored Feb 20, 2024
1 parent a64d3c8 commit c72ea32
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions .github/workflows/format-codebase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,7 @@ jobs:
- name: 💄 Run Prettier
uses: creyD/[email protected]
with:
prettier_options: --write **/*.{js,md,yml,sh,html,css}
prettier_plugins: "prettier-plugin-sh"
prettier_options: --write **/*.{js,md,yml,html,css}
commit_message: "chore(codebase): format with prettier"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: 🐍 Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"

- name: 🖤 Format code with black
run: |
git config --global user.email "[email protected]"
git config --global user.name "HarryVasanth"
pip install black
black . --verbose
git add .
- name: 📎 Push changes
run: |
git diff-index --quiet HEAD || git commit -m "chore(codebase): format with black" && git push || echo "No changes" && exit

0 comments on commit c72ea32

Please sign in to comment.