Repository navigation
chore: sync dev with main - #88
Merged
Merged
Conversation
Run the released artifact from its git tag, the way a consumer pins it (`uses: vig-os/[email protected]`), and assert it produces a signed commit. e2e-smoke only exercises `uses: ./` from a branch checkout; nothing ran the published tag ref after it was pushed. Triggers on any `v*.*.*` tag push (RCs and finals; the floating v0 / v0.X tags are excluded so promotions don't re-trigger it) and on workflow_dispatch with a `ref` input, so an already-pushed tag can be validated on demand. Since `uses:` forbids expressions, the tag is checked out into a path and run via `uses: ./action-under-test`. Assertions mirror e2e-smoke: the commit exists, is signed, and round-trips the expected content. Refs: #81
Closes #81. ## What A new project-owned workflow, `published-tag-smoke.yml`, that runs the **released artifact from its git tag** — the way a consumer pins it (`uses: vig-os/[email protected]`) — and asserts it produces a **signed** commit with the expected content. Sibling of `e2e-smoke`, which only exercises `uses: ./` from a branch checkout and so never covers the published tag ref after it is pushed. ## Why it targets `main` directly `workflow_dispatch` is only dispatchable when the workflow lives on the **default branch**. This is a deliberate, scoped deviation from the dev-first flow so we can trigger it for the already-pushed `v0.3.0-rc1`; `sync-main-to-dev` carries it back to `dev` for future releases. It is a brand-new file, so it does not touch the in-flight `release/0.3.0` PR (#78) or the devkit-managed release workflows. ## Design notes - **Triggers:** `push: tags: ['v*.*.*']` (matches RCs `v0.3.0-rc1` and finals `v0.3.0`; excludes the floating `v0`/`v0.X` tags that move on promotion) **and** `workflow_dispatch` with a `ref` input. - **Fires on tag push** because the release pipeline pushes tags with the **Release App** token (not `GITHUB_TOKEN`), so tag-push events trigger downstream workflows. - **`uses:` forbids expressions**, so the action is checked out **at the tag** into a path and run via `uses: ./action-under-test` — a faithful reproduction of a consumer pinning `@<tag>`. - **Assertions mirror `e2e-smoke`:** commit exists → is `verification.verified == true` → content round-trips; scratch branch deleted on exit. No recursion (scratch push is a branch, not a tag). ## Validating this release The `push` trigger will not retro-fire for the already-pushed `v0.3.0-rc1`. Once this merges to `main`, dispatch it manually against `v0.3.0-rc1`: ``` gh workflow run published-tag-smoke.yml --ref main -f ref=v0.3.0-rc1 ``` Local checks green: `actionlint` clean, `just precommit` (prek --all-files, incl. yamllint + shellcheck) all pass.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Syncs
devwithmain(sync-main-to-dev workflow).