Skip to content

Commit

Permalink
. e mdsnippets
Browse files Browse the repository at this point in the history
  • Loading branch information
yelmuratoff committed Jun 30, 2024
1 parent 4c33035 commit 3883bca
Showing 1 changed file with 21 additions and 24 deletions.
45 changes: 21 additions & 24 deletions .github/workflows/mdsnippets.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,30 @@
name: Formatting and Snippets

on:
push:

jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/approval_tests

format_and_snippets:
runs-on: ubuntu-latest
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 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
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]
- 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

0 comments on commit 3883bca

Please sign in to comment.