From 7465aa125f44d3b24cbbabf39ea9093c2d5f2099 Mon Sep 17 00:00:00 2001 From: Yelaman Yelmuratov Date: Sun, 30 Jun 2024 11:07:17 +0500 Subject: [PATCH] . e updated actions --- .github/workflows/auto_deploy.yml | 8 +++-- .github/workflows/build_and_test.yml | 8 ++--- .github/workflows/mdsnippets.yml | 44 +++++++++++++++++----------- 3 files changed, 35 insertions(+), 25 deletions(-) diff --git a/.github/workflows/auto_deploy.yml b/.github/workflows/auto_deploy.yml index fc115d1..2b75862 100644 --- a/.github/workflows/auto_deploy.yml +++ b/.github/workflows/auto_deploy.yml @@ -7,11 +7,13 @@ on: - completed jobs: - check-release-tag: + build: + defaults: + run: + working-directory: packages/approval_tests runs-on: ubuntu-latest if: ${{ github.event.workflow_run.conclusion == 'success' }} steps: - - name: 📚 Git Checkout uses: actions/checkout@v4 with: @@ -20,4 +22,4 @@ jobs: - name: ⬆️ Auto-Deploy to pub.dev run: | ./packages/approval_tests/bash/push_release.sh - shell: bash \ No newline at end of file + shell: bash diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index c0418dd..5b33e16 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -4,6 +4,9 @@ on: [push, pull_request] jobs: build: + defaults: + run: + working-directory: packages/approval_tests runs-on: ${{ matrix.os }} strategy: fail-fast: true @@ -62,11 +65,6 @@ jobs: "C:\\Program Files\\Android\\Android Studio\\bin\\studio64.exe" --version fi shell: bash - - - name: Go to approval_tests - run: | - cd packages - cd approval_tests - name: 📦 Install Dependencies run: | diff --git a/.github/workflows/mdsnippets.yml b/.github/workflows/mdsnippets.yml index e736fc5..74ad395 100644 --- a/.github/workflows/mdsnippets.yml +++ b/.github/workflows/mdsnippets.yml @@ -1,26 +1,36 @@ 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 + defaults: + run: + working-directory: packages/approval_tests steps: + - name: 📚 Git Checkout + uses: actions/checkout@v4 - - name: 📚 Git Checkout - uses: actions/checkout@v4 - - - name: ♻️ Run MarkdownSnippets - run: | - dotnet tool install --global MarkdownSnippets.Tool - mdsnippets ${GITHUB_WORKSPACE} - 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' - name: github actions - email: actions@github.com + - 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