-
Notifications
You must be signed in to change notification settings - Fork 81
39 lines (31 loc) · 967 Bytes
/
generate-index.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
name: Generate Index JSON
on:
push:
branches:
- main
paths:
- 'data/**'
jobs:
generate-index:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: 11
- name: Build with Gradle
run: ./gradlew generateIndexJson
- name: Copy index.json
run: cp index.json ${{ github.workspace }}/index.json
- name: Copy index.map.json
run: cp index.map.json ${{ github.workspace }}/index.map.json
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Update index.json and index.map.json
commit_user_name: GitHub Actions
commit_user_email: [email protected]
commit_author: GitHub Actions <[email protected]>
file_pattern: "index.json,index.map.json"