[GH-ISSUE #640] Issue: working-directory property don't seems to work with ${{ }} vars #419

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

Originally created by @tchiotludo on GitHub (Apr 26, 2021).
Original GitHub issue: https://github.com/nektos/act/issues/640

Act version

act version 0.2.21

Actual behaviour

[Terraform/terraform] ⭐  Run Terraform credentials
| /home/ludo/Web/lm/workflow/4: line 1: ${{ env.TERRAFORM_WORKINGDIR }}: bad substitution

The same works on github actions

Workflow and/or repository

workflow
name: 'Terraform'

on:
  workflow_dispatch:
  push:
    branches:
      - develop

env:
  TERRAFORM_WORKINGDIR: terraform

jobs:
  terraform:
    runs-on: ubuntu-20.04

    steps:
      - name: Checkout
        uses: actions/checkout@v2

      - name: Terraform Init
        id: init
        working-directory: "${{ env.TERRAFORM_WORKINGDIR }}"
        run: terraform init


Originally created by @tchiotludo on GitHub (Apr 26, 2021). Original GitHub issue: https://github.com/nektos/act/issues/640 ## Act version ```none act version 0.2.21 ``` ## Actual behaviour ``` [Terraform/terraform] ⭐ Run Terraform credentials | /home/ludo/Web/lm/workflow/4: line 1: ${{ env.TERRAFORM_WORKINGDIR }}: bad substitution ``` The same works on github actions ## Workflow and/or repository <details> <summary>workflow</summary> ```none name: 'Terraform' on: workflow_dispatch: push: branches: - develop env: TERRAFORM_WORKINGDIR: terraform jobs: terraform: runs-on: ubuntu-20.04 steps: - name: Checkout uses: actions/checkout@v2 - name: Terraform Init id: init working-directory: "${{ env.TERRAFORM_WORKINGDIR }}" run: terraform init ``` </details>
Author
Owner

@dtprogammer commented on GitHub (May 14, 2021):

Facing same issue.

<!-- gh-comment-id:841538624 --> @dtprogammer commented on GitHub (May 14, 2021): Facing same issue.
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#419
No description provided.