-
Notifications
You must be signed in to change notification settings - Fork 23
44 lines (36 loc) · 1.16 KB
/
manual_update_new.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
42
43
44
name: MLCompetitionHub
on:
watch:
types: started
jobs:
build:
runs-on: ubuntu-20.04
if: github.event.repository.owner.id == github.event.sender.id
env:
mail_server: ${{ secrets.mail_server }}
mail_port: ${{ secrets.mail_port }}
mail_username: ${{ secrets.mail_username }}
mail_sender: ${{ secrets.mail_sender }}
mail_password: ${{ secrets.mail_password }}
steps:
- uses: actions/checkout@v1
- name: set up python 3.6
uses: actions/setup-python@v1
with:
python-version: 3.6
- name: install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: schedule update new competition
run: python update.py manual
- name: commit
run: |
git config --global user.email [email protected]
git config --global user.name MLCompetitionHubGithubAction
git add .
git commit -m "schedule update new competition" -a
- name: push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}