-
Notifications
You must be signed in to change notification settings - Fork 1
87 lines (87 loc) · 2.41 KB
/
update-reports.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: Update JAPI Tracker reports
on:
schedule:
- cron: '0 0 * * 0'
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
env:
BUILD_DIR: public
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: joschi/[email protected]
with:
java-version: 11
- uses: actions/cache@v3
with:
path: db
key: ${{ runner.os }}-db
restore-keys: |
${{ runner.os }}-db
- uses: actions/cache@v3
with:
path: installed
key: ${{ runner.os }}-installed
restore-keys: |
${{ runner.os }}-installed
- uses: actions/cache@v3
with:
path: src
key: ${{ runner.os }}-src
restore-keys: |
${{ runner.os }}-src
- uses: actions/cache@v3
with:
path: api_dump
key: ${{ runner.os }}-api_dump
restore-keys: |
${{ runner.os }}-api_dump
- uses: actions/cache@v3
with:
path: archives_report
key: ${{ runner.os }}-archives_report
restore-keys: |
${{ runner.os }}-archives_report
- uses: actions/cache@v3
with:
path: compat_report
key: ${{ runner.os }}-compat_report
restore-keys: |
${{ runner.os }}-compat_report
- uses: actions/cache@v3
with:
path: package_diff
key: ${{ runner.os }}-package_diff
restore-keys: |
${{ runner.os }}-package_diff
- uses: actions/cache@v3
with:
path: timeline
key: ${{ runner.os }}-timeline
restore-keys: |
${{ runner.os }}-timeline
- name: Install dependencies
run: sudo bin/install.sh
- name: Update profiles
run: bin/update-profiles.sh
- name: Commit updated profiles
uses: github-actions-x/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
push-branch: 'master'
commit-message: 'Update profiles'
files: 'profiles/*.json'
- name: Update reports
run: bin/update-reports.sh
- name: Deploy
if: success()
uses: crazy-max/[email protected]
with:
target_branch: gh-pages
build_dir: ${{ env.BUILD_DIR }}
env:
GITHUB_TOKEN: ${{ secrets.GH_PAGES_TOKEN }}