Interview Prep/CI/CD/GitHub Actions

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.

All CI/CD questions

More on GitHub Actions