0
0
mirror of https://github.com/sp-tarkov/server.git synced 2025-02-12 21:50:43 -05:00

Refresh ItemDB Cache Workflow (!282)

This commit adds a workflow that will send an API request to the item DB website that will clear its cache. It will run whenever there is a commit on the `master` branch with a change to one of the files within the `project/assets/database` directory.

Reviewed-on: SPT-AKI/Server#282
Co-authored-by: Refringe <me@refringe.com>
Co-committed-by: Refringe <me@refringe.com>
This commit is contained in:
Refringe 2024-04-08 22:00:02 +00:00 committed by chomp
parent 52ad73880d
commit 3951e29a34

View File

@ -0,0 +1,21 @@
name: Clear Item DB Website Cache
on:
push:
branches: [ master ]
jobs:
clear-cache:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- id: filter
uses: dorny/paths-filter@v3.0.2
with:
list-files: shell
filters: |
database:
- 'project/assets/database/**'
- name: Send Refresh Request
if: steps.filter.outputs.database == 'true'
run: curl --max-time 30 https://db.sp-tarkov.com/api/refresh