CI main workflow #869
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
name: CI main workflow | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
schedule: | |
- cron: '15 21 * * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: '11' | |
- name: Maven install | |
run: mvn help:system -U --show-version install | |
env: | |
MAVEN_OPTS: -Xmx2048m | |
- name: Generate contributors.json | |
run: ./target/contributors main . | |
env: | |
MP_BOT_TOKEN: ${{ secrets.MP_BOT_TOKEN }} | |
- name: Verify Changed files | |
uses: tj-actions/verify-changed-files@v9 | |
id: verify-changed-files | |
with: | |
files: | | |
contributors.json | |
projects.json | |
- name: Push new json file from doc folder | |
if: steps.verify-changed-files.outputs.files_changed == 'true' | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "GitHub Action" | |
git add docs | |
git commit -m "Updated docs/ json files file." | |
git push |