Skip to content

[fix] check Play reachability before building, not after publishing - #277

Merged
YJack0000 merged 1 commit into
mainfrom
fix/play-precondition-first
Aug 20, 2026
Merged

[fix] check Play reachability before building, not after publishing#277
YJack0000 merged 1 commit into
mainfrom
fix/play-precondition-first

Conversation

@YJack0000

Copy link
Copy Markdown
Contributor

What this changes

Moves the PLAY_SERVICE_ACCOUNT_JSON precondition from just-before-the-upload to just-after-checkout.

Why

Follow-up to #276, fixing a placement mistake in it. The guard sat between Create the GitHub release and Upload to the Play internal track — the one position where it barely helps. By the time it fires:

  • ~5 minutes of build have been spent
  • the .aab is built and signed
  • a GitHub release for the tag already exists

which is precisely the half-made state the guard exists to prevent. It just makes it red instead of green. A precondition belongs before the work it protects: it now runs immediately after checkout, fails in seconds, and leaves nothing behind to clean up or re-tag around.

No behaviour change otherwise — same condition, same message, same skip_play_upload opt-out.

How it was verified

  • Workflow parses as YAML; step order is Checkout → Check this release can reach Play → JDK → SDK → tag check → Test → build → …
  • bunx tsc --noEmit / bunx vitest run pass
  • Ran the app — CI only
  • Tests / strings — n/a

The guard added in the previous commit sat between "Create the GitHub release"
and the upload, which is the one place it is nearly useless: by the time it
fires, five minutes of build have been spent and a GitHub release for the tag
already exists, so the failure leaves exactly the half-made state the guard was
added to prevent — just red instead of green.

A precondition belongs before the work. It now runs straight after checkout,
costs seconds, and leaves nothing to clean up.
@YJack0000
YJack0000 merged commit 14a669b into main Aug 20, 2026
3 checks passed
@sonarqubecloud

Copy link
Copy Markdown

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