Skip to content

Test: workflow-level env accessible in step with:#36

Closed
TWiStErRob wants to merge 1 commit into
mainfrom
tw/test-env-in-with
Closed

Test: workflow-level env accessible in step with:#36
TWiStErRob wants to merge 1 commit into
mainfrom
tw/test-env-in-with

Conversation

@TWiStErRob
Copy link
Copy Markdown
Owner

@TWiStErRob TWiStErRob commented Apr 21, 2026

Purpose

Verify that a workflow-level env: variable (resolved from inputs.dry-run || false) is accessible inside a step's with: block via ${{ env.X }}.

Result

Confirmed working. env.RESOLVED resolves to 'false' when accessed from process.env.RESOLVED inside actions/github-script with: script:.

env.RESOLVED: 'false'

CI Run

https://github.com/TWiStErRob/github-actions-test/actions/runs/24738600449

Context

This validates the approach used in I#16224, where inputs.dry-run || false is resolved once at workflow level and referenced by 5 track-workflow-result steps.

@TWiStErRob
Copy link
Copy Markdown
Owner Author

Experiment complete, results documented in PR body.

@TWiStErRob TWiStErRob closed this Apr 21, 2026
@TWiStErRob TWiStErRob deleted the tw/test-env-in-with branch April 21, 2026 18:21
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