Skip to content

Fix autotag workflow release step + city_panel offline-list bug - #7

Merged
pQu4k3r merged 2 commits into
mainfrom
develop
Sep 10, 2026
Merged

Fix autotag workflow release step + city_panel offline-list bug#7
pQu4k3r merged 2 commits into
mainfrom
develop

Conversation

@pQu4k3r

@pQu4k3r pQu4k3r commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Summary

Two unrelated fixes landed on develop while this PR was open, so both are included here.

1. Autotag workflow: GitHub Release step never actually ran

User reported the repo's Releases page was stuck on v1.2.8 despite the plugin having moved well past it. Root cause found in .github/workflows/autotag.yml.

The "Create GitHub Release" step's condition checked steps.check_tag.outputs.exists, but the "Check if tag already exists" step never sets an output named exists — it only ever sets skip (and only when the tag already existed). So steps.check_tag.outputs.exists was always empty, the condition always evaluated false, and the release-creation step was silently skipped on every single run (conclusion: skipped, confirmed via the Actions run history), while the overall workflow still reported success.

Tag creation was unaffected (it correctly checks skip) — confirmed via list_tags: v1.2.9, v1.3.0, v1.3.1, and v1.3.2 all have tags, but list_releases shows none of them ever got a published Release. The bug has been present since at least v1.2.9 (mid-July), well before this session's work.

Fix: one-line change, use the same skip output the rest of the workflow already checks.

Note — does not backfill history: this only fixes release creation going forward. The four already-missing releases (v1.2.9, v1.3.0, v1.3.1, v1.3.2) can't be recreated by simply re-running the workflow, since their tags already exist and the skip check would treat that as "already handled." Backfilling those needs either manually creating releases for the existing tags via the GitHub UI, or deleting and recreating a tag to force a re-run (not done here — destructive action on published history).

2. city_panel.py: offline city list saved every search result, not just the selected city

User reported: searching "Roma" added all 17 online search results to new_city.cfg, not just the one city actually chosen. The auto-create-offline-list feature added in #6 wrote every result from search_online to the file immediately, before the user picked anything.

Fix: moved the write to the four places a city is actually selected (ok/save_favorite1/save_favorite2/save_home), keyed off the same get_selected_city() string already used to save favorites — same format as the offline file already expects. Still deduped by id.

pQu4k3r and others added 2 commits September 10, 2026 15:21
The "Create GitHub Release" step's condition checked
steps.check_tag.outputs.exists, but the "Check if tag already
exists" step never sets an output named exists - it only ever sets
skip (and only when the tag already existed). So
steps.check_tag.outputs.exists was always empty, the condition
always evaluated false, and the release-creation step was silently
skipped on every run.

Confirmed via the Actions run history: tags v1.2.9 through v1.3.2
were all created successfully, but no GitHub Release was published
for any of them - the repo's Releases page has been stuck showing
v1.2.8 since April even though the plugin itself moved well past it.
Tag creation (which correctly checks the skip output) was never
affected.

Fixed the condition to check the same skip output the rest of the
workflow already uses. This only fixes releases going forward; the
four already-missing releases (v1.2.9, v1.3.0, v1.3.1, v1.3.2) need
to be created manually since their tags already exist (an automatic
re-run would skip them for the same "already tagged" reason it
always has).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UPpumFb2PP21ATpDwJBYBB
Reported: searching "Lourdes" added all 17 online search results to
new_city.cfg, not just the one city actually chosen.

#6 appended every result from search_online to the offline list as
soon as the search ran, before the user picked anything. Moved the
write to the four places a city is actually selected instead
(ok/save_favorite1/save_favorite2/save_home), keyed off the exact
same get_selected_city() string already used to save favorites -
same format as the offline file, so no extra parsing/round-tripping.
Still deduped by id so repeated selections don't grow the file.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UPpumFb2PP21ATpDwJBYBB
@pQu4k3r pQu4k3r changed the title Fix autotag workflow: GitHub Release step never actually ran Fix autotag workflow release step + city_panel offline-list bug Sep 10, 2026
@pQu4k3r
pQu4k3r merged commit 98eabce into main Sep 10, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant