Skip to content

Command-line improvements #5887

@reneleonhardt

Description

@reneleonhardt

Act version

0.2.79

Feature description

act works beautifully, but only after I tried and found out all necessary params, the result looks quite complicated 😄

act --container-architecture linux/amd64 -P ubuntu-latest=-self-hosted -W .github/workflows/ci.yml -j build

I suggest the following improvements:

  • As long as there are no multi-architecture runners, act can determine if not running on amd64 and set --container-architecture linux/amd64 if necessary
  • A new flag --self-hosted replaces all runs-on by -self-hosted (instead of needing to replace all of them manually like macos-13, ubuntu-22.04, ...)
  • The -W ci option could just check if a file for the value exists (.github/workflows/ci.yml or .github/workflows/ci.yaml)
  • The -j option could prompt interactively with a multi-select if no value was passed and more than one job exists in the workflow, otherwise just run the single job without prompting (no error for a missing value displayed)
  • A new --skip publish,release option to only run build and test jobs for example (if -W would be implemented, it could skip workflows too)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions