add test and trigger to update

This commit is contained in:
Evan Gray 2023-04-02 19:02:04 -04:00
parent 48af675cb6
commit 5828b67ef1
1 changed files with 8 additions and 1 deletions

View File

@ -1,6 +1,7 @@
name: Update Content
on:
workflow_dispatch:
push:
branches:
- "*"
@ -15,7 +16,7 @@ jobs:
with:
node-version: 12
- name: Install dependencies
- name: Install python dependencies
run: python -m pip install -r requirements.txt
- name: Update logos
@ -24,6 +25,12 @@ jobs:
- name: Update content
run: npm run gen
- name: Install node dependencies
run: npm ci
- name: Test updated files
run: npm test
- name: Check for modified files
id: git-check
run: echo ::set-output name=modified::$(if [ -n "$(git status --porcelain)" ]; then echo "true"; else echo "false"; fi)