Skip to content

JSON (#41)

JSON (#41) #68

Workflow file for this run

name: Format Code
on:
workflow_dispatch:
push:
jobs:
format:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Format Markdown
uses: actions/checkout@v2
with:
fetch-depth: 0
- run: npm install --global prettier
- run: prettier --write '**/*.md'
- name: Commit and Push Changes
if: github.repository == 'Rishabh672003/Programming-Notes'
uses: actions-js/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
message: 'Formatted the code'
force: true