Skip to content
name: Formatting and Snippets
on:
push:
jobs:
format_and_snippets:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run black
run: |
pip install black
python -m black .
- name: Run MarkdownSnippets
run: |
dotnet tool install --global MarkdownSnippets.Tool
mdsnippets ${GITHUB_WORKSPACE}
shell: bash
- name: Git Commit and Push
uses: github-actions-x/[email protected]
with:
github-token: "${secrets.GITHUB_TOKEN}"
commit-message: ". d updated markdown snippets"
rebase: 'true'
push-branch: 'main'
name: github actions
email: [email protected]