mirror of
https://github.com/nektos/act.git
synced 2026-04-26 17:35:49 +03:00
[GH-ISSUE #504] Use of env causes index out of range error #345
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#345
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 @dchambers on GitHub (Jan 27, 2021).
Original GitHub issue: https://github.com/nektos/act/issues/504
Info:
act version 0.2.18(installed usingbrew install act)Given the following GitHub Yaml:
I see the following output when I run
act -s ubuntu-latest=lucasalt/act_base:latest -n | grep mylib:All other tasks works fine. Only this one task that make use of
envhas a problem?@catthehacker commented on GitHub (Jan 27, 2021):
Remove the unnecessary hyphen in line 17. PR https://github.com/nektos/act/pull/500 (currently in master only) implements error handling for that case and will print information that action syntax is invalid.
@dchambers commented on GitHub (Jan 27, 2021):
Yes, it works, thank you 🎉 . It's surprising that GitHub accepts that config at all since my
envsetting wasn't obviously associated with either a job or a single step. Not sure how I snuck that config past GitHub in retrospect. 😂