-
-
Notifications
You must be signed in to change notification settings - Fork 75
38 lines (31 loc) · 1 KB
/
zoho.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
name: Update Zoho
on:
push:
branches:
- master
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install Python requirements
run: pip install -r requirements.txt
- name: Install dependencies
env:
MKDOCS_INSIDERS_TOKEN: ${{ secrets.MKDOCS_INSIDERS_TOKEN }}
run: |
pip install -r requirements.txt
# pip install -r requirements-insiders.txt
- name: Generate Zoho authentication credentials and update Zoho
env:
IS_PR: ${{ github.event_name == 'pull_request' }}
ZOHO_CONFIG_ID: ${{ secrets.ZOHO_CONFIG_ID }}
ZOHO_CONFIG_SECRET: ${{ secrets.ZOHO_CONFIG_SECRET }}
ZOHO_CONFIG_CODE: ${{ secrets.ZOHO_CONFIG_CODE }}
ZOHO_REFRESH_TOKEN: ${{ secrets.ZOHO_REFRESH_TOKEN }}
run: |
python ./utils/push_to_zoho.py