Skip to content

Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.

fix(store): report the actual submission result, not the configuration

Etienne Lescot1617c9305e96
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index bdc9359b7..f50e86d04 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -968,6 +968,7 @@ jobs:
uses: microsoft/[email protected]
- name: Submit the package to the Store
+ id: submit
if: steps.store.outputs.enabled == 'true'
shell: pwsh
env:
@@ -989,12 +990,35 @@ jobs:
Write-Output "Submitting $($appx.Name) to product $env:PRODUCT_ID"
msstore publish $appx.FullName -id $env:PRODUCT_ID
+ # Report what happened, not what was configured. Keyed off `enabled` alone
+ # under always(), this claimed "Submitted to the Store" when `msstore
+ # publish` had failed, and "skipped, no credentials" when the resolver had
+ # rejected a half-configured one — a release summary asserting success over
+ # a package that never left the runner, which is the failure mode this whole
+ # job exists to remove.
+ #
+ # Values go through env rather than being interpolated into the script: the
+ # outcome of a step is not attacker-controlled here, but `${{ }}` expanding
+ # straight into shell source is the habit worth not having.
- name: Summary
if: always()
shell: bash
+ env:
+ RESOLVE: ${{ steps.store.outcome }}
+ ENABLED: ${{ steps.store.outputs.enabled }}
+ SUBMIT: ${{ steps.submit.outcome }}
run: |
- if [[ "${{ steps.store.outputs.enabled }}" == "true" ]]; then
- echo "Submitted to the Store. Certification still has to pass before it goes live." >> "$GITHUB_STEP_SUMMARY"
- else
- echo "Store publishing skipped (no credentials). Upload the appx from this run's artifacts by hand." >> "$GITHUB_STEP_SUMMARY"
- fi
+ case "${RESOLVE}:${ENABLED}:${SUBMIT}" in
+ success:true:success)
+ echo "Submitted to the Store. Certification still has to pass before it goes live."
+ ;;
+ success:false:*)
+ echo "Store publishing skipped: no credentials configured. Upload the appx from this run's artifacts by hand."
+ ;;
+ failure:*)
+ echo "Store credentials are half-configured, so nothing was submitted. The job log names the missing secrets."
+ ;;
+ *)
+ echo "Store submission did not complete (submit step: ${SUBMIT:-not reached}). The package is still attached to this run as an artifact."
+ ;;
+ esac >> "$GITHUB_STEP_SUMMARY"
diff --git a/technical-documentation/engineering/release-and-secrets.md b/technical-documentation/engineering/release-and-secrets.md
index b104b01fe..67b3cb65e 100644
--- a/technical-documentation/engineering/release-and-secrets.md
+++ b/technical-documentation/engineering/release-and-secrets.md
@@ -88,7 +88,7 @@ Rotate the certificate by exporting a replacement P12, base64-encoding it withou
## Microsoft Store publishing
-`build.yml`'s `publish-msstore` job submits the appx to the Store through the [Microsoft Store Developer CLI](https://learn.microsoft.com/en-us/windows/apps/publish/msstore-dev-cli/github-actions). It runs on **stable tags only** — an RC reaching the Store would go through certification and land on every user's machine as an automatic update.
+`build.yml`'s `publish-msstore` job submits the appx to the Store through the [Microsoft Store Developer CLI](https://learn.microsoft.com/en-us/windows/apps/publish/msstore-dev-cli/github-actions). It runs for **stable versions only**, whether that comes from a pushed `vX.Y.Z` tag or from a manual `workflow_dispatch` whose `release_tag` is a stable one. An RC is excluded either way: it would go through certification and land on every user's machine as an automatic update.
| Name | Kind | Purpose |
|---|---|---|