Q12
What is the difference between 'run' and 'uses' in a workflow step definition?
💬Answer
- run: Executes shell command lines (e.g.,
run: npm installorrun: echo "hello"). - uses: Calls a pre-authored, reusable Action published in the GitHub Marketplace or in another repository (e.g.,
uses: actions/checkout@v4).
Related GitHub Actions Questions
View All GitHub ActionsQuestions →Q1
What is GitHub Actions, and how does it process workflows under the hood?
Q2Can you list and explain the key architectural components of GitHub Actions?
Q3How do you configure workflow triggers, and what is the syntax for defining manual execution parameters?
Q4What is a matrix strategy in GitHub Actions, and in what scenarios would you use it?

Created by
Apurv Gujjar
DevOps & Cloud Engineer
Specialized in:DevOpsAWSGCPKubernetesTerraformDocker
View Portfolio