Github Actions Certification Flashcards
(132 cards)
What is the primary purpose of GitHub Actions?
To automate software development workflows.
What are the three main components of a GitHub Action?
Workflows, Jobs, and Steps.
What is a GitHub Actions workflow?
An automated process added to a repository to build, test, package, release, or deploy a project.
What is a GitHub Actions job?
A section of the workflow associated with a runner.
What is a GitHub Actions step?
An individual task that can run commands in a job.
What triggers a GitHub Actions workflow?
An event triggers the workflow.
What is a runner in GitHub Actions?
A machine where the job runs, can be GitHub-hosted or self-hosted.
What attribute specifies the runner?
The runs-on: attribute.
What are actions?
Standalone commands that are executed within a workflow.
What is the uses: attribute in a step?
It specifies the path to the container action defined in an action.yml file.
How can you schedule a GitHub Actions workflow?
Using the schedule event with POSIX cron syntax.
What is the workflow_dispatch event?
Allows manual triggering of a workflow via GitHub REST API or the Actions tab.
How can you trigger a workflow for external events?
Using the repository_dispatch event and sending a POST request to GitHub.
What are conditional keywords in GitHub Actions?
Keywords like if that allow you to evaluate expressions and run steps conditionally.
How can you disable a GitHub Actions workflow?
You can stop it from being triggered without deleting the file, either on GitHub or through the GitHub REST API.
What is the purpose of a GitHub Actions workflow file?
To define the automated process for building, testing, and deploying code.
What are the two main components of a GitHub Actions workflow?
Jobs and Steps
What is the default name of the GitHub Actions workflow file?
.github/workflows/main.yml
What is the purpose of the on keyword in a GitHub Actions workflow?
To specify the events that trigger the workflow.
What does the jobs section in a GitHub Actions workflow define?
It defines the tasks to be executed in the workflow.
What are GitHub-hosted runners?
Virtual machines hosted by GitHub to run workflows.
What is the purpose of the runs-on keyword?
To specify the type of runner to use for the job.
What are self-hosted runners?
Runners that you host yourself in your own infrastructure.
What is the purpose of the steps keyword?
To define a sequence of tasks to be executed in a job.