-
Notifications
You must be signed in to change notification settings - Fork 1
87 lines (87 loc) · 2.91 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@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Set up JDK
uses: joschi/setup-jdk@fdc8726d3eaee700a67647704c396f71fe773eed # v2.5.1
with:
java-version: 11
- uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4
with:
path: db
key: ${{ runner.os }}-db
restore-keys: |
${{ runner.os }}-db
- uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4
with:
path: installed
key: ${{ runner.os }}-installed
restore-keys: |
${{ runner.os }}-installed
- uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4
with:
path: src
key: ${{ runner.os }}-src
restore-keys: |
${{ runner.os }}-src
- uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4
with:
path: api_dump
key: ${{ runner.os }}-api_dump
restore-keys: |
${{ runner.os }}-api_dump
- uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4
with:
path: archives_report
key: ${{ runner.os }}-archives_report
restore-keys: |
${{ runner.os }}-archives_report
- uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4
with:
path: compat_report
key: ${{ runner.os }}-compat_report
restore-keys: |
${{ runner.os }}-compat_report
- uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4
with:
path: package_diff
key: ${{ runner.os }}-package_diff
restore-keys: |
${{ runner.os }}-package_diff
- uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4
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/commit@722d56b8968bf00ced78407bbe2ead81062d8baa # v2.9
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/ghaction-github-pages@c05ee637ec73429400a359430db8e5629f3f2564 # v4.0.0
with:
target_branch: gh-pages
build_dir: ${{ env.BUILD_DIR }}
env:
GITHUB_TOKEN: ${{ secrets.GH_PAGES_TOKEN }}