Skip to content

Commit 295a91f

Browse files
committed
Detect newly synced untracked files in sync-and-release.
git diff alone missed fs_driver.py's first sync (untracked), so the run reported 'Already in sync' and skipped the release. Stage the synced paths before checking for changes.
1 parent 43a9326 commit 295a91f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/sync-and-release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,10 @@ jobs:
5757
git config user.name 'github-actions[bot]'
5858
git config user.email 'github-actions[bot]@users.noreply.github.com'
5959
60-
if git diff --quiet && git diff --cached --quiet; then
60+
# Stage first: a newly synced file (e.g. fs_driver.py on its first
61+
# sync) is untracked, and `git diff` alone would miss it.
62+
git add generated/lvgl_python.c generated/lvgl.pyi lv_conf.h display_driver.py fs_driver.py lvgl
63+
if git diff --cached --quiet; then
6164
echo "changed=false" >> "$GITHUB_OUTPUT"
6265
echo "Already in sync with lvgl-bindings ${LV_BINDINGS_REF}."
6366
else

0 commit comments

Comments
 (0)