Skip to main content

Run GitHub Actions locally using nektos/act from a Python CLI

Project description

gasket-cli

Short description here — Run GitHub Actions workflows locally using nektos/act.


🚀 Usage

run-act

Run GitHub Actions workflows locally.

gasket run-act                              # Run push event workflows
gasket run-act --event pull_request         # Run pull_request workflows
gasket run-act --list                       # List available workflows
gasket run-act --dry-run                    # Dry run only
gasket run-act -j test                      # Run specific job
gasket run-act -W .github/workflows/ci.yml  # Run specific workflow
gasket run-act -s MY_SECRET=value           # Pass secrets
gasket run-act --secret-file=.secrets       # Load secrets from file
gasket run-act --env-file=.env              # Load environment variables from file
gasket run-act -P ubuntu-latest=node:16-buster-slim  # Platform override

Options

Option Type Default Description
--event / -e Choice push Event type: push, pull_request, workflow_dispatch, schedule, release
--workflow / -W Path None Specific workflow file or directory
--job / -j String None Specific job name to run
--secret / -s String None Secret in KEY=VALUE format (repeatable)
--secret-file Path None Path to secrets file (.env format)
--var String None Variable in KEY=VALUE format (repeatable)
--var-file Path None Path to variables file
--input String None Input in KEY=VALUE format for workflow_dispatch (repeatable)
--input-file Path None Path to inputs file
--event-file Path None Path to event JSON payload file
--platform / -P String None Platform override RUNNER=IMAGE (repeatable)
--env String None Environment variable KEY=VALUE (repeatable)
--env-file Path None Path to env file
--matrix String None Matrix filter KEY:VALUE (repeatable)
--container-architecture String None Container architecture (e.g. linux/amd64)
--artifact-server-path Path None Path to enable artifact server
--dry-run / -n Flag False Dry run mode
--list / -l Flag False List workflows without running
--verbose / -v Flag False Verbose output
--offline Flag False Use cached actions (offline mode)
--timeout Integer 600 Timeout in seconds

setup

Manage installation and prerequisites.

gasket setup check                 # Check all prerequisites
gasket setup check --format json   # JSON output
gasket setup install-act           # Download and install act
gasket setup install-act --force   # Force reinstall
gasket setup install-all           # Install everything + verify
gasket setup uninstall-act         # Remove act binary

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gasket_cli-0.2.3.tar.gz (19.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gasket_cli-0.2.3-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file gasket_cli-0.2.3.tar.gz.

File metadata

  • Download URL: gasket_cli-0.2.3.tar.gz
  • Upload date:
  • Size: 19.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for gasket_cli-0.2.3.tar.gz
Algorithm Hash digest
SHA256 5996f078250d2b2df6c3624836fcb1cfd1f46c96e6520d6c3bc6e61d9a28d598
MD5 cda38bde969750a281e520c1a331d38c
BLAKE2b-256 18a9411c370d8a342fbeea72707b56768f42693ff8a206decc7647c12812fc72

See more details on using hashes here.

File details

Details for the file gasket_cli-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: gasket_cli-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 15.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for gasket_cli-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f1c4618472c49536e00522acf3ea3521319daef6a6586cde9bc436a19bf2d687
MD5 d260349426881aa79b470ee9c513c6fa
BLAKE2b-256 f7aec769e2d403f5b5b906b1616300035fd7d60fce3c230addf0660b394c3c69

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page