From da939c1c0e3e6f7ecd03501f3af0bdd89dd08753 Mon Sep 17 00:00:00 2001 From: gautam-divyanshu Date: Thu, 7 Nov 2024 15:29:22 +0530 Subject: [PATCH] in same yaml --- .github/workflows/pull-latest-docs.yml | 35 ++++++++++++++++--- .github/workflows/pull-talawa-mobile-docs.yml | 32 ----------------- 2 files changed, 30 insertions(+), 37 deletions(-) delete mode 100644 .github/workflows/pull-talawa-mobile-docs.yml diff --git a/.github/workflows/pull-latest-docs.yml b/.github/workflows/pull-latest-docs.yml index 54ffafb6c99..f8939a705db 100644 --- a/.github/workflows/pull-latest-docs.yml +++ b/.github/workflows/pull-latest-docs.yml @@ -1,14 +1,15 @@ -name: Pull Talawa API and Admin Changes +name: Pull Talawa Changes on: schedule: - - cron: '0 0 * * 0' + - cron: '0 0 * * 0' # Runs every Sunday at midnight workflow_dispatch: jobs: - pull: + pull_talawa_mobile: + name: Pull Talawa Mobile Changes runs-on: ubuntu-latest - + steps: - name: Checkout current repository uses: actions/checkout@v2 @@ -17,7 +18,31 @@ jobs: run: | git config --global user.email "${{ env.email }}" git config --global user.name "${{ github.actor }}" - + + - name: Install Flutter + uses: subosito/flutter-action@v2 + with: + flutter-version: '3.22.3' + channel: 'stable' + + - name: Run bash script to fetch Talawa mobile docs + run: bash .github/workflows/pull-talawa-mobile-docs.sh + env: + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + + pull_talawa_api_admin: + name: Pull Talawa API and Admin Changes + runs-on: ubuntu-latest + + steps: + - name: Checkout current repository + uses: actions/checkout@v2 + + - name: Set up Git config + run: | + git config --global user.email "${{ env.email }}" + git config --global user.name "${{ github.actor }}" + - name: Run bash script for docs API run: bash .github/workflows/pull-docs-api.sh env: diff --git a/.github/workflows/pull-talawa-mobile-docs.yml b/.github/workflows/pull-talawa-mobile-docs.yml deleted file mode 100644 index 0c94f177737..00000000000 --- a/.github/workflows/pull-talawa-mobile-docs.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: Pull Talawa Mobile Changes - -on: - schedule: - - cron: '0 0 * * 0' # Runs every Sunday at midnight - workflow_dispatch: - -jobs: - pull: - runs-on: ubuntu-latest - - steps: - - name: Checkout current repository - uses: actions/checkout@v2 - - - name: Set up Git config - run: | - git config --global user.email "${{ env.email }}" - git config --global user.name "${{ github.actor }}" - - - name: Install Flutter - uses: subosito/flutter-action@v2 - with: - flutter-version: '3.22.3' - channel: 'stable' - - - name: Run bash script to fetch Talawa mobile docs - run: bash .github/workflows/pull-talawa-mobile-docs.sh - env: - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} - -