Server/.gitea/workflows/clear-itemdb-cache.yaml
Refringe 3951e29a34 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: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/282
Co-authored-by: Refringe <me@refringe.com>
Co-committed-by: Refringe <me@refringe.com>
2024-04-08 22:00:02 +00:00

22 lines
511 B
YAML

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