-
Notifications
You must be signed in to change notification settings - Fork 27
48 lines (40 loc) · 1.1 KB
/
main.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
45
46
47
48
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 "action@github.com"
git config --global user.name "GitHub Action"
git add docs
git commit -m "Updated docs/ json files file."
git push