mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[GH-ISSUE #315] ReferenceError with variables having dash in their name #222
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#222
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ssbarnea on GitHub (Jul 23, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/315
python-versionis defined at matrix level and has special meaning for github so there is no way to change that.Based on the error, I suspect that the parser is broken as it ends up looking for version.
@chrispblink commented on GitHub (Jul 31, 2020):
I'd like to add to this, you can get around this problem by using index syntax (eg
matrix["python-version"]) but this is actually invalid syntax and will fail to parse on GitHub Actions. Woops!Example snippet
The error on GitHub Actions
After some quick googling it seems there is a valid index syntax according to the GitHub Actions docs
@chrispblink commented on GitHub (Aug 3, 2020):
Well... some poking around the codebase lead me to the previous discussion of this issue (#104) and the already-implemented fix (#287) in master 😅
@github-actions[bot] commented on GitHub (Oct 3, 2020):
Issue is stale and will be closed in 7 days unless there is new activity