Skip to content

tpyo

tpyo #97

Workflow file for this run

name: check
on: push
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v5
- name: clone hashcards repo locally
run: git clone https://github.com/eudoxia0/hashcards.git /opt/hashcards
- name: install hashcards
run: |
make
sudo make install
working-directory: /opt/hashcards
- run: make
- name: check for uncommitted changes
run: |
if [[ -n $(git status --porcelain) ]]; then
echo "Error: Generated files are out of date!"
echo "The following files have changes:"
git status --porcelain
echo ""
echo "Please run 'make' locally and commit the updated files."
exit 1
else
echo "Success: All generated files are up to date."
fi
- name: check card integrity
run: make check