. e mdsnipperts action #138
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
on: | |
push: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: packages/approval_tests | |
steps: | |
- name: 📚 Git Checkout | |
uses: actions/checkout@v4 | |
- name: Set up .NET Core | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '6.0.x' | |
- name: Install Dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --configuration Release --no-restore | |
format_and_snippets: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: packages/approval_tests | |
steps: | |
- name: 📚 Git Checkout | |
uses: actions/checkout@v4 | |
- 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' | |
name: github actions | |
email: actions@github.com |