. e mdsnippets #140
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: | |
- name: 📚 Git Checkout | |
uses: actions/checkout@v4 | |
with: | |
path: packages/approval_tests | |
- name: ♻️ Run MarkdownSnippets | |
run: | | |
dotnet tool install --global MarkdownSnippets.Tool | |
mdsnippets ${GITHUB_WORKSPACE} | |
shell: bash | |
working-directory: packages/approval_tests | |
- name: ⬆️ Git Commit and Push | |
run: | | |
git config --global user.name "github actions" | |
git config --global user.email "[email protected]" | |
git add . | |
git commit -m ". d updated markdown snippets" | |
git push origin main | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
working-directory: packages/approval_tests |