-
Notifications
You must be signed in to change notification settings - Fork 1.3k
41 lines (34 loc) · 1021 Bytes
/
repo_search.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
name: Repo-Search
on:
schedule:
- cron: '0 1 * * *'
jobs:
# Set the job key. The key is displayed as the job name
update-repo-status:
# Name the Job
name: Update repo status for all saved repo
# Set the type of machine to run on
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: setup python
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
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 git_search.py
env:
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
- name: Commit & Push changes
uses: actions-js/push@master
with:
github_token: ${{ secrets.GIT_TOKEN }}
branch: 'master'