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:
parent
52ad73880d
commit
3951e29a34
21
.gitea/workflows/clear-itemdb-cache.yaml
Normal file
21
.gitea/workflows/clear-itemdb-cache.yaml
Normal 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
|
Loading…
x
Reference in New Issue
Block a user