-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 1.22 KB
/
update_dataset.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: update_ph_issue_analyzer_datasets
on:
pull_request:
types: [ trigger-update-ph-issue-analyzer-dataset ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
persist-credentials: false
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: execute py script # run the run.py to get the latest data
run: |
python get_github_data.py
env:
AUTH_TOKEN: ${{ secrets.AUTH_TOKEN }} # if run.py requires passwords..etc, set it as secrets
- name: Commit files
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add .
git commit -m "Updating dataset" --allow-empty
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}