Skip to content

Commit 317f5a7

Browse files
committed
feat:added github workflow action to normalize repos
1 parent 12e03b3 commit 317f5a7

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/normalize_repos.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Normalize Repos
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *'
6+
7+
jobs:
8+
build:
9+
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
python-version: [3.5, 3.6, 3.7, 3.8]
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Set up Python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v1
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
- name: Install dependencies
22+
run: |
23+
cd normalize_repos
24+
python -m pip install --upgrade pip
25+
pip install pipenv
26+
pipenv install
27+
- name: Export token to env and run normalize script
28+
run: |
29+
export GITHUB_TOKEN=${{ secrets.github_token }}
30+
python3 normalize_repos.py
31+

0 commit comments

Comments
 (0)