[GH-ISSUE #120] Unable to interpolate string #81

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

Originally created by @tamipangadil on GitHub (Mar 3, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/120

Hi,

I have a simple build workflow file that contains some extra variables that can be found in env and runner such as runner.os and env.cache-name. But all of them are showing this error:

ERRO[0099] Unable to interpolate string '${{ runner.os }}-node-${{ env.cache-name }}-

I believe that you might also support having these values declared somewhere as either environment or command parameters but I don't see it in the current command help notes.

-b, --bind                   bind working directory to container, rather than copy
-C, --directory string       working directory (default ".")
-n, --dryrun                 dryrun mode
-e, --eventpath string       path to event JSON file
-h, --help                   help for act
-j, --job string             run job
-l, --list                   list workflows
-P, --platform stringArray   custom image to use per platform (e.g. -P ubuntu-18.04=nektos/act-environments-ubuntu:18.04)
-p, --pull                   pull docker image(s) if already present
-q, --quiet                  disable logging of output from steps
-r, --reuse                  reuse action containers to maintain state
-s, --secret stringArray     secret to make available to actions with optional value (e.g. -s mysecret=foo or -s mysecret)
-v, --verbose                verbose output
    --version                version for act
-w, --watch                  watch the contents of the local repo and run when files change
-W, --workflows string       path to workflow files (default "./.github/workflows/")

Are you planning to support this feature? Thanks!

Originally created by @tamipangadil on GitHub (Mar 3, 2020). Original GitHub issue: https://github.com/nektos/act/issues/120 Hi, I have a simple build workflow file that contains some extra variables that can be found in `env` and `runner` such as `runner.os` and `env.cache-name`. But all of them are showing this error: ``` ERRO[0099] Unable to interpolate string '${{ runner.os }}-node-${{ env.cache-name }}- ``` I believe that you might also support having these values declared somewhere as either environment or command parameters but I don't see it in the current command `help` notes. ``` -b, --bind bind working directory to container, rather than copy -C, --directory string working directory (default ".") -n, --dryrun dryrun mode -e, --eventpath string path to event JSON file -h, --help help for act -j, --job string run job -l, --list list workflows -P, --platform stringArray custom image to use per platform (e.g. -P ubuntu-18.04=nektos/act-environments-ubuntu:18.04) -p, --pull pull docker image(s) if already present -q, --quiet disable logging of output from steps -r, --reuse reuse action containers to maintain state -s, --secret stringArray secret to make available to actions with optional value (e.g. -s mysecret=foo or -s mysecret) -v, --verbose verbose output --version version for act -w, --watch watch the contents of the local repo and run when files change -W, --workflows string path to workflow files (default "./.github/workflows/") ``` Are you planning to support this feature? Thanks!
Author
Owner

@mced commented on GitHub (Mar 3, 2020):

Seems to be related to https://github.com/nektos/act/issues/104

<!-- gh-comment-id:594002995 --> @mced commented on GitHub (Mar 3, 2020): Seems to be related to https://github.com/nektos/act/issues/104
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#81
No description provided.