mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[GH-ISSUE #1194] Act job requires 'runs-on' line, which then errors on Github Actions #665
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#665
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 @codingone21 on GitHub (Jun 1, 2022).
Original GitHub issue: https://github.com/nektos/act/issues/1194
Bug report info
Command used with act
Describe issue
There is a discrepency between running 'act' and 'github' actions, specifically when using 'needs'.
When using 'act', it requires that I have 'runs-on', and fails if I don't.
Example:
When using the actual github actions, I need to remove 'runs-on', otherwise I get an error like below.
Example:
The error I get when I add 'runs-on' line like the first example:
Unexpected value 'uses'... Unexpected value 'with'Link to GitHub repository
No response
Workflow content
Relevant log output
Additional information
No response
@KnisterPeter commented on GitHub (Jun 1, 2022):
Act currently does
nicenot support reusable workflows.@10thfloor commented on GitHub (Jun 1, 2022):
@KnisterPeter Can you elaborate on this? Why does
actrequireruns-on, but github does not?I'm also confused.
actdoes run the reusable workflow, but you have to add theruns-onproperty.What are the options then? Manually remove the
runs-onwhen it's time to deploy the action to my repository?@KnisterPeter commented on GitHub (Jun 1, 2022):
As I've said before, reusable workflows are not implemented.
With runs-on it does start to run the job as a regular job and that did not have uses or with keywords.
@catthehacker commented on GitHub (Jun 2, 2022):
Because GitHub is developing faster than us. Before reusable workflows, there was no option to not have
runs-on.