-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (36 loc) · 1.21 KB
/
python-package.yml
File metadata and controls
40 lines (36 loc) · 1.21 KB
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
name: Python package
on:
push:
paths:
- 'zotero_export/SIMSSA_media.html'
- 'zotero_export/SIMSSA_presentations.html'
- 'zotero_export/SIMSSA_publications.html'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout repo content
uses: actions/checkout@v2 # checkout the repository content to github runner.
- name: setup python
uses: actions/setup-python@v4
with:
python-version: 3.9 #install the python needed
- 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 github_html_parser.py
- name: add credentials
run: git config --global user.email "esav678@gmail.com"; git config --global user.name "evansavage"
- name: check for changes
run: git status
- name: stage changed files
run: git add .
- name: commit changed files
run: git commit -m "Auto updating citations"
- name: fetch from master
run: git fetch origin master
- name: push code to master
run: git push origin HEAD:master