-
Notifications
You must be signed in to change notification settings - Fork 6
46 lines (39 loc) · 1.03 KB
/
data.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
name: Update data
on:
schedule:
- cron: '0 5 * * *'
workflow_dispatch:
permissions:
contents: write
pages: write
id-token: write
concurrency:
group: "github"
cancel-in-progress: true
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- id: report
env:
GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
mvn clean install exec:java -Pgithub
./load-run-logs.sh
./load-retried-prs.sh
if ( ! git diff --exit-code &>/dev/null ); then
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git add --all
git commit -m "Updated data"
git push
fi
deploy:
uses: ./.github/workflows/pages.yml
needs: [update]