-
Notifications
You must be signed in to change notification settings - Fork 248
36 lines (31 loc) · 1009 Bytes
/
auto-update.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
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java CI with Maven
on:
schedule:
- cron: '41 8 4 * *'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 15
uses: actions/setup-java@v2
with:
java-version: '15'
distribution: 'adopt'
- name: Build with Maven
run: mvn clean -B package --file auto-update-dataset/java/pom.xml
- name: git add file
run: git add pr-data.csv
- name: check for changes
run: git status
- name: set author
run: git config --global user.email "[email protected]"
- name: set author name
run: git config --global user.name "Dobrosav Vlaskovic"
- name: git commit changed file
run: git commit -m "Auto-update pr-data"
- name: git push to main
run: git push