From 3883bca19e62ac9ee198806032d7ca96a8a0bffe Mon Sep 17 00:00:00 2001 From: Yelaman Yelmuratov Date: Sun, 30 Jun 2024 23:40:59 +0500 Subject: [PATCH] . e mdsnippets --- .github/workflows/mdsnippets.yml | 45 +++++++++++++++----------------- 1 file changed, 21 insertions(+), 24 deletions(-) diff --git a/.github/workflows/mdsnippets.yml b/.github/workflows/mdsnippets.yml index 939621b..4adb8ff 100644 --- a/.github/workflows/mdsnippets.yml +++ b/.github/workflows/mdsnippets.yml @@ -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/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 + - name: ⬆️ Git Commit and Push + run: | + git config --global user.name "github actions" + git config --global user.email "actions@github.com" + git add . + git commit -m ". d updated markdown snippets" + git push origin main + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + working-directory: packages/approval_tests