wads.scripts.set_env_vars

Set Environment Variables from GitHub Secrets

This script reads the CI configuration from pyproject.toml and sets environment variables from GitHub Secrets, validating required variables.

Usage:

python -m wads.scripts.set_env_vars [path_to_pyproject]
Environment:

SECRETS_CONTEXT - JSON string of all GitHub Secrets GITHUB_ENV - Path to GitHub Actions environment file GITHUB_STEP_SUMMARY - Path to GitHub Actions step summary file

Functions

main()

Main entry point.

set_environment_variables([pyproject_path])

Set environment variables from GitHub Secrets based on CI config.

wads.scripts.set_env_vars.main()[source]

Main entry point.

wads.scripts.set_env_vars.set_environment_variables(pyproject_path='.')[source]

Set environment variables from GitHub Secrets based on CI config.

Parameters:

pyproject_path (str | Path) – Path to pyproject.toml file or directory containing it

Return type:

int

Returns:

Exit code (0 for success, 1 for failure)