diff --git a/.github/workflows/opencode-smoke.yml b/.github/workflows/opencode-smoke.yml index b729e07..e072a50 100644 --- a/.github/workflows/opencode-smoke.yml +++ b/.github/workflows/opencode-smoke.yml @@ -47,7 +47,7 @@ jobs: id: version env: ARTIFACT_NAME: ${{ inputs.artifact }} - REQUESTED_VERSION: ${{ github.event_name == 'workflow_call' && inputs.version || '' }} + REQUESTED_VERSION: ${{ inputs.version }} REQUESTED_TAG: ${{ inputs.tag }} run: | if [ -n "$ARTIFACT_NAME" ]; then diff --git a/src/release-workflows.test.ts b/src/release-workflows.test.ts index 819e159..412189c 100644 --- a/src/release-workflows.test.ts +++ b/src/release-workflows.test.ts @@ -78,4 +78,9 @@ describe('release workflows', () => { /postpublish-smoke:[\s\S]*?permissions:\n {6}actions: read\n {6}contents: read/ ); }); + + it('preserves the requested version across reusable workflow event types', () => { + expect(smokeWorkflow).toMatch(/REQUESTED_VERSION: \$\{\{ inputs\.version \}\}/); + expect(smokeWorkflow).not.toContain("github.event_name == 'workflow_call' && inputs.version"); + }); });