-
Notifications
You must be signed in to change notification settings - Fork 154
54 lines (43 loc) · 1.44 KB
/
pull-latest-docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Pull Talawa Changes
on:
schedule:
- cron: '0 0 * * 0' # Runs every Sunday at midnight
workflow_dispatch:
jobs:
pull_talawa_mobile:
name: Pull Talawa Mobile 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: 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:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
- name: Run bash script for docs admin
run: bash .github/workflows/pull-docs-admin.sh
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}