[GH-ISSUE #337] act does not support matrix variables with "-" in their names, GitHub does #239

Closed
opened 2026-03-01 21:41:42 +03:00 by kerem · 3 comments
Owner

Originally created by @adamtheturtle on GitHub (Aug 17, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/337

I had:

      matrix:
        python-version: [3.7, 3.8]

and

    steps:
      - uses: actions/checkout@v2
      - name: "Set up Python"
        uses: actions/setup-python@v1
        with:
          python-version: ${{ matrix.python-version }}

This works on GitHub but act shows:

ERRO[0004] Unable to interpolate string '${{ matrix.python-version }}' - [ReferenceError: 'version' is not defined] 
Originally created by @adamtheturtle on GitHub (Aug 17, 2020). Original GitHub issue: https://github.com/nektos/act/issues/337 I had: ```yaml matrix: python-version: [3.7, 3.8] ``` and ```yaml steps: - uses: actions/checkout@v2 - name: "Set up Python" uses: actions/setup-python@v1 with: python-version: ${{ matrix.python-version }} ``` This works on GitHub but `act` shows: ``` ERRO[0004] Unable to interpolate string '${{ matrix.python-version }}' - [ReferenceError: 'version' is not defined] ```
kerem closed this issue 2026-03-01 21:41:42 +03:00
Author
Owner

@justincy commented on GitHub (Aug 18, 2020):

Related: https://github.com/nektos/act/issues/315

<!-- gh-comment-id:675767203 --> @justincy commented on GitHub (Aug 18, 2020): Related: https://github.com/nektos/act/issues/315
Author
Owner

@cdb commented on GitHub (Aug 31, 2020):

@adamtheturtle - this looks like it was fixed just a couple days ago in 0.2.12 https://github.com/nektos/act/pull/287#issuecomment-683121952

<!-- gh-comment-id:684046421 --> @cdb commented on GitHub (Aug 31, 2020): @adamtheturtle - this looks like it was fixed just a couple days ago in `0.2.12` https://github.com/nektos/act/pull/287#issuecomment-683121952
Author
Owner

@adamtheturtle commented on GitHub (Aug 31, 2020):

Thank you.

<!-- gh-comment-id:684063687 --> @adamtheturtle commented on GitHub (Aug 31, 2020): Thank you.
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#239
No description provided.