Compare commits

..

4 Commits

Author SHA1 Message Date
Nemesis da49f95c3e
ci: add secrets to workflow 2023-02-19 20:36:50 +01:00
Nemesis 6cb44237f3
ci: move import costumes below emblems 2023-02-19 20:32:04 +01:00
Nemesis 2446886103
ci: move to cron 2023-02-19 20:30:43 +01:00
Nemesis c8f68bd170
ci: initial import script 2023-02-19 20:27:47 +01:00
1 changed files with 48 additions and 0 deletions

48
.github/workflows/import.js.yml vendored Normal file
View File

@ -0,0 +1,48 @@
name: Auto import
on:
schedule:
- cron: "0 0 * * 0"
env:
STRAPI_BASE_API_URL: ${{ secrets.STRAPI_BASE_API_URL }}
STRAPI_GRAPHQL: ${{ secrets.STRAPI_GRAPHQL }}
STRAPI_API_TOKEN: ${{ secrets.STRAPI_API_TOKEN }}
jobs:
costumes:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run import:emblems
- run: npm run import:costumes
weapons:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run import:weapon-stories