-
Notifications
You must be signed in to change notification settings - Fork 8
41 lines (36 loc) · 1.87 KB
/
fast_track_gt_check.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
name: goldenticket
on:
repository_dispatch:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout repo main
uses: actions/checkout@v2 # checkout the repository content to github runner.
- name: Install Google Chrome # Using shell script to install Google Chrome
run: |
chmod +x ./scripts/InstallChrome.sh
./scripts/InstallChrome.sh
- name: setup python
uses: actions/setup-python@v2
with:
python-version: 3.8 #install the python needed
- name: Install dependencies
run: |
python -m pip install pip==22.0.4
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: execute py script # run the run.py to get the latest data
run: |
python find_golden_tickets.py False
env:
bearer_token: ${{ secrets.BEARER_TOKEN_GT }} # if run.py requires passwords..etc, set it as secrets
consumer_key: ${{ secrets.CONSUMER_KEY_GT }} # if run.py requires passwords..etc, set it as secrets
consumer_secret: ${{ secrets.CONSUMER_SECRET_GT }} # if run.py requires passwords..etc, set it as secrets
access_token: ${{ secrets.ACCESS_TOKEN_GT }} # if run.py requires passwords..etc, set it as secrets
access_token_secret: ${{ secrets.ACCESS_TOKEN_SECRET_GT }} # if run.py requires passwords..etc, set it as secrets
access_token_github: ${{ secrets.ACCESS_TOKEN_GITHUB }} # if run.py requires passwords..etc, set it as secrets
gcp_token: ${{ secrets.GCP_TOKEN }} # if run.py requires passwords..etc, set it as secrets
subscription_key: ${{ secrets.AZURE_KEY }} # if run.py requires passwords..etc, set it as secrets
change_url: ${{ secrets.CHANGE_URL }} # if run.py requires passwords..etc, set it as secrets