Skip to content

Commit 5e2bcec

Browse files
committed
implement static caching and client side optimizations
1 parent 6ae934a commit 5e2bcec

File tree

2 files changed

+167
-232
lines changed

2 files changed

+167
-232
lines changed

.github/workflows/update-cache.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Update Releases Cache
2+
3+
on:
4+
repository_dispatch:
5+
types: [update-catalog-cache]
6+
workflow_dispatch:
7+
8+
jobs:
9+
update-cache:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
18+
- name: Fetch releases from GitHub API
19+
env:
20+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
run: |
22+
gh api --paginate repos/nullcpy/rvb/releases > releases.json
23+
24+
- name: Commit and push changes
25+
uses: stefanzweifel/git-auto-commit-action@v5
26+
with:
27+
commit_message: "chore: auto-update releases cache from rvb dispatch"
28+
file_pattern: releases.json

0 commit comments

Comments
 (0)