What is the difference between `env`, `with`, and `inputs`?
BeginnerConceptGitHub Actions
Answer
env: sets environment variables visible to the shell and actions at workflow, job or step level. with: passes parameters to an action (uses:). inputs is the context an action or reusable workflow uses to read what was passed via with: (or workflow_dispatch inputs). Action inputs are also available to the action as INPUT_<NAME> env variables.
More on GitHub Actions
What are workflows, jobs, steps and actions in GitHub Actions?BeginnerWhat events can trigger a workflow?BeginnerWhat is the difference between `pull_request` and `pull_request_target`?AdvancedWhat is a runner, and how do GitHub-hosted and self-hosted runners differ?BeginnerHow do you pass data between steps and between jobs?IntermediateHow does a build matrix work?Intermediate