3951e29a34
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>
22 lines
511 B
YAML
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
|