-
Notifications
You must be signed in to change notification settings - Fork 99
Closed
Description
Describe the bug
Environment variables set on the workflow step (via the env
keyword) are not passed through to the command when the workflow runs.
From my workflow:
- name: Destroy Infrastructure
id: retry_on_error
uses: nick-fields/retry@v2
env:
ENVIRONMENT: dev
NODE_OPTIONS: '--max_old_space_size=7168'
with:
timeout_minutes: 60
max_attempts: 3
retry_wait_seconds: 60
retry_on: error
command: npx nx destroy ${{matrix.project}} --stage=${{ steps.git-branch.outputs.name }}
Expected behavior
Environment Variables set on the workflow step are used when invoking the command, which is the standard behaviour for the default run
action, that this is meant to be a drop-in replacement for.
Screenshots
N/A
Logs
I can gather logs if necessary, but I feel like this is part feature request part bug report, so I'm not sure how useful logs would be.
nick-fields
Metadata
Metadata
Assignees
Labels
No labels