Merge branch 'main' of https://github.com/approvals/ApprovalTests.Python #271
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: 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] | |