mirror of
https://github.com/nektos/act.git
synced 2026-04-27 01:45:52 +03:00
[PR #1740] [CLOSED] allow command line container options to be appended to workflow specified options #2103
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#2103
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?
📋 Pull Request Information
Original PR: https://github.com/nektos/act/pull/1740
Author: @eljohnson92
Created: 4/18/2023
Status: ❌ Closed
Base:
master← Head:override_container_options📝 Commits (1)
45f3b7fallow command line container options to be added workflow specified options📊 Changes
1 file changed (+5 additions, -3 deletions)
View changed files
📝
pkg/runner/run_context.go(+5 -3)📄 Description
This PR allows for command line options passed through
--container-optionsto override any specified in the workflow file. It fixes #1696 which is needed for situations where you need to override a container option just in act and not in the GHA themselves.In the GIthubs section on Container Options they call out they do not support the
--networkoption for containers because they run containers explicitly in the bridge network and you cannot specify the--networkflag twice in an invocation. With this change, ACT users can run both GHA and ACT runs from the same workflow file with the same network type.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.