Bump joschi/setup-jdk from 2.4.0 to 2.5.1 (#22) #247
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |