DLL delete-kth | insert-head-tail (#35) #39
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 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 |