Java CI with Maven #34
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |