Skip to content

Bump actions/cache from 4.0.0 to 4.0.1 (#34) #263

Bump actions/cache from 4.0.0 to 4.0.1 (#34)

Bump actions/cache from 4.0.0 to 4.0.1 (#34) #263

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@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4
with:
path: db
key: ${{ runner.os }}-db
restore-keys: |
${{ runner.os }}-db
- uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4
with:
path: installed
key: ${{ runner.os }}-installed
restore-keys: |
${{ runner.os }}-installed
- uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4
with:
path: src
key: ${{ runner.os }}-src
restore-keys: |
${{ runner.os }}-src
- uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4
with:
path: api_dump
key: ${{ runner.os }}-api_dump
restore-keys: |
${{ runner.os }}-api_dump
- uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4
with:
path: archives_report
key: ${{ runner.os }}-archives_report
restore-keys: |
${{ runner.os }}-archives_report
- uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4
with:
path: compat_report
key: ${{ runner.os }}-compat_report
restore-keys: |
${{ runner.os }}-compat_report
- uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4
with:
path: package_diff
key: ${{ runner.os }}-package_diff
restore-keys: |
${{ runner.os }}-package_diff
- uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # 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 }}