@ t added some tests to namers #199
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 | |
- name: Set Git Author for Snippets Commit | |
run: | | |
git config --local user.name "github actions" | |
git config --local user.email "actions@github.com" | |
- name: ✏️ Create mdsnippets.json | |
run: | | |
echo '{ | |
"$schema": "https://raw.githubusercontent.com/SimonCropp/MarkdownSnippets/master/schema.json", | |
"Convention": "InPlaceOverwrite", | |
"TocLevel": 5 | |
}' > ${GITHUB_WORKSPACE}/mdsnippets.json | |
shell: bash | |
- name: ♻️ Run MarkdownSnippets | |
run: | | |
dotnet tool install --global MarkdownSnippets.Tool | |
mdsnippets ${GITHUB_WORKSPACE} | |
shell: bash | |
- name: ⬆️ Git Commit and Push | |
uses: github-actions-x/commit@v2.9 | |
with: | |
github-token: "${{ secrets.GITHUB_TOKEN }}" | |
commit-message: ". d updated markdown snippets" | |
rebase: 'true' | |
push-branch: 'main' |