-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (30 loc) · 935 Bytes
/
Copy pathcheck.yaml
File metadata and controls
36 lines (30 loc) · 935 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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