[GH-ISSUE #713] Issue: no expansion in env #451

Closed
opened 2026-03-01 21:43:31 +03:00 by kerem · 1 comment
Owner

Originally created by @chevdor on GitHub (Jun 1, 2021).
Original GitHub issue: https://github.com/nektos/act/issues/713

Act version

act version 0.2.22

Expected behaviour

With the following action definition:

...
- id: build
   name: Build ${{ inputs.package }} using ${{ inputs.image }}:${{ inputs.tag }}
   shell: bash
   env:  
      FOOBAR: foo/${{ inputs.bar }}

The expectation is to have the env FOOBAR set to "foo/bar" if inputs.bar was passed as "bar".

Actual behaviour

FOOABAR expands (or should I say does not ~) to foo/${{ inputs.bar }}

Workflow and/or repository

Originally created by @chevdor on GitHub (Jun 1, 2021). Original GitHub issue: https://github.com/nektos/act/issues/713 ## Act version `act version 0.2.22` ## Expected behaviour With the following action definition: ``` ... - id: build name: Build ${{ inputs.package }} using ${{ inputs.image }}:${{ inputs.tag }} shell: bash env: FOOBAR: foo/${{ inputs.bar }} ``` The expectation is to have the env FOOBAR set to "foo/bar" if `inputs.bar` was passed as "bar". ## Actual behaviour FOOABAR expands (or should I say does not ~) to `foo/${{ inputs.bar }}` ## Workflow and/or repository <!-- - Provide workflow with which we can reproduce the issue OR - Provide link to your GitHub repository that contains the workflow <details> <summary>workflow</summary> ```none name: example workflow on: [push] jobs: [...] ``` </details> ## Steps to reproduce Running `act` as `act -b --insecure-secrets --env-file .env -W tests/test.yml`
kerem 2026-03-01 21:43:31 +03:00
Author
Owner

@ChristopherHX commented on GitHub (Jun 1, 2021):

Duplicate of #664, I made a draft PR #712 to fix this and more.

<!-- gh-comment-id:852093548 --> @ChristopherHX commented on GitHub (Jun 1, 2021): Duplicate of #664, I made a draft PR #712 to fix this and more.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#451
No description provided.