Skip to content

Commit 99587a4

Browse files
committed
CI must pass even when resources are updated
1 parent 86d2d05 commit 99587a4

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

.github/workflows/update-latest-ai-file.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,9 @@ jobs:
3333
- name: Commit and push changes
3434
run: |
3535
git add ai/liquid.mdc
36-
git commit -m "Update ai/liquid.mdc"
37-
git push origin main
36+
if [[ -n "$(git status --porcelain)" ]]; then
37+
git commit -m "Update ai/liquid.mdc"
38+
git push origin main
39+
else
40+
echo "No changes to commit"
41+
fi

.github/workflows/update-latest.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,9 @@ jobs:
2222
- name: Commit and push changes
2323
run: |
2424
git add data/latest.json
25-
git commit -m "Update data/latest.json"
26-
git push origin main
25+
if [[ -n "$(git status --porcelain)" ]]; then
26+
git commit -m "Update data/latest.json"
27+
git push origin main
28+
else
29+
echo "No changes to commit"
30+
fi

ai/sources/_css.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<variables>
1212
- Use CSS variables to reduce redundancy
13-
- Hardcode values as variables first (e.g. --touch-target-size: 44px)
13+
- Hardcode values as variables first (e.g. --touch-target-size: 45px)
1414
- Never hardcode colors, use color schemes
1515
- Scope variables to components unless global
1616
- Global variables go in :root (in may live in a file like snippets/theme-styles-variables.liquid)

0 commit comments

Comments
 (0)