Skip to content

Commit b22d590

Browse files
committed
ci(release): retain verified acceptance assets on retry
1 parent 789fe8d commit b22d590

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

‎.github/workflows/publish.yml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,13 @@ jobs:
100100
mkdir previous
101101
gh release download "$RELEASE_TAG" --pattern sdk-acceptance.tar.gz --dir previous
102102
gh attestation verify previous/sdk-acceptance.tar.gz --repo "$GH_REPO" --signer-workflow "$GH_REPO/.github/workflows/publish.yml" --source-ref "refs/tags/$RELEASE_TAG" --source-digest "$GITHUB_SHA" --deny-self-hosted-runners
103-
# A retry may regenerate dependency locks, but must test identical SDK bytes.
103+
# Keep the authenticated original when a retry rebuilds the same SDK.
104104
tar -xOf previous/sdk-acceptance.tar.gz ./acceptance.json | jq -S . > previous.json
105105
tar -xOf release/sdk-acceptance.tar.gz ./acceptance.json | jq -S . > current.json
106106
cmp previous.json current.json
107+
exit 0
107108
fi
108-
gh release upload "$RELEASE_TAG" release/sdk-acceptance.tar.gz --clobber
109+
gh release upload "$RELEASE_TAG" release/sdk-acceptance.tar.gz
109110
110111
publish:
111112
needs: [build, attest]
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
# Installed-package acceptance tests
1+
---
2+
title: Installed-package acceptance tests
3+
description: Build and publish the locked consumer project used by Hosting.
4+
---
25

36
Run `bash scripts/build-acceptance.sh <package-file> <output-directory>` after
47
building the SDK. The command creates a standalone consumer, installs the exact

0 commit comments

Comments
 (0)