Skip to content

Commit 65c8395

Browse files
authored
Update 4-knowledge-check.yml
Revert edits to module assessment
1 parent 79684f8 commit 65c8395

File tree

1 file changed

+59
-59
lines changed

1 file changed

+59
-59
lines changed

learn-pr/github/github-actions-ci/4-knowledge-check.yml

Lines changed: 59 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -15,68 +15,68 @@ quiz:
1515
title: Check your knowledge
1616
questions:
1717
- content: "What action do you use to save artifacts from a GitHub Actions workflow?"
18-
choices:
19-
- content: "`actions/upload-artifact`"
20-
isCorrect: true
21-
explanation: "Use the `actions/upload-artifact` action to save an artifact."
22-
- content: "`actions/checkout@v3`"
23-
isCorrect: false
24-
explanation: "Use the `actions/upload-artifact` action to save an artifact. The `actions/checkout@v3` action copies the code from your repository to a virtual machine."
25-
- content: "`actions/download-artifact`"
26-
isCorrect: false
27-
explanation: "Use the `actions/upload-artifact` action to save an artifact. Use the `actions/download-artifact` action to download a saved artifact."
18+
choices:
19+
- content: "`actions/upload-artifact`"
20+
isCorrect: true
21+
explanation: "Use the `actions/upload-artifact` action to save an artifact."
22+
- content: "`actions/checkout@v3`"
23+
isCorrect: false
24+
explanation: "Use the `actions/upload-artifact` action to save an artifact. The `actions/checkout@v3` action copies the code from your repository to a virtual machine."
25+
- content: "`actions/download-artifact`"
26+
isCorrect: false
27+
explanation: "Use the `actions/upload-artifact` action to save an artifact. Use the `actions/download-artifact` action to download a saved artifact."
2828
- content: "Which of the following options is a way that you *can't* use GitHub Actions workflows?"
29-
choices:
30-
- content: "Automatically run test suites on each push."
31-
isCorrect: false
32-
explanation: "You can use GitHub Actions workflows to do all these tasks except to *upload secrets*. You don't want your secret in plain text in a workflow file."
33-
- content: "Kick off a review process."
34-
isCorrect: false
35-
explanation: "You can use GitHub Actions workflows to do all these tasks except to *upload secrets*. You don't want your secret in plain text in a workflow file."
36-
- content: "Automate common repetitive tasks, such as welcoming new contributors to a repository."
37-
isCorrect: false
38-
explanation: "You can use GitHub Actions workflows to do all these tasks except to *upload secrets*. You don't want your secret in plain text in a workflow file."
39-
- content: "Upload a new secret to GitHub Secrets."
40-
isCorrect: true
41-
explanation: "Don't use GitHub Actions workflows to upload secrets. You don't want your secret in plain text in a workflow file."
29+
choices:
30+
- content: "Automatically run test suites on each push."
31+
isCorrect: false
32+
explanation: "You can use GitHub Actions workflows to do all these tasks except to *upload secrets*. You don't want your secret in plain text in a workflow file."
33+
- content: "Kick off a review process."
34+
isCorrect: false
35+
explanation: "You can use GitHub Actions workflows to do all these tasks except to *upload secrets*. You don't want your secret in plain text in a workflow file."
36+
- content: "Automate common repetitive tasks, such as welcoming new contributors to a repository."
37+
isCorrect: false
38+
explanation: "You can use GitHub Actions workflows to do all these tasks except to *upload secrets*. You don't want your secret in plain text in a workflow file."
39+
- content: "Upload a new secret to GitHub Secrets."
40+
isCorrect: true
41+
explanation: "Don't use GitHub Actions workflows to upload secrets. You don't want your secret in plain text in a workflow file."
4242
- content: "Which action would you use to access a repository's code from the virtual machine provided by GitHub Actions?"
43-
choices:
44-
- content: "`actions/upload-artifact`"
45-
isCorrect: false
46-
explanation: "The `actions/upload-artifact` action saves an artifact."
47-
- content: "`actions/checkout`"
48-
isCorrect: true
49-
explanation: "The `actions/checkout` action accesses a repository's code from the virtual machine provided by GitHub Actions."
50-
- content: "`npm install`"
51-
isCorrect: false
52-
explanation: "The `npm install` command installs a package and its dependencies."
53-
- content: "`actions/setup-node`"
54-
isCorrect: false
55-
explanation: "The `actions/setup-node` action sets up the correct version of Node.js."
43+
choices:
44+
- content: "`actions/upload-artifact`"
45+
isCorrect: false
46+
explanation: "The `actions/upload-artifact` action saves an artifact."
47+
- content: "`actions/checkout`"
48+
isCorrect: true
49+
explanation: "The `actions/checkout` action accesses a repository's code from the virtual machine provided by GitHub Actions."
50+
- content: "`npm install`"
51+
isCorrect: false
52+
explanation: "The `npm install` command installs a package and its dependencies."
53+
- content: "`actions/setup-node`"
54+
isCorrect: false
55+
explanation: "The `actions/setup-node` action sets up the correct version of Node.js."
5656
- content: "How many builds does the following matrix produce? `os: [ubuntu-latest, windows-latest] node-version: [14.x, 16.x, 18.x]`"
57-
choices:
58-
- content: "Six"
59-
isCorrect: true
60-
explanation: "Each operating system is paired with each version of Node.js for a total of six builds."
61-
- content: "Three"
62-
isCorrect: false
63-
explanation: "Each operating system is paired with each version of Node.js for a total of six builds."
64-
- content: "Five"
65-
isCorrect: false
66-
explanation: "Each operating system is paired with each version of Node.js for a total of six builds."
57+
choices:
58+
- content: "Six"
59+
isCorrect: true
60+
explanation: "Each operating system is paired with each version of Node.js for a total of six builds."
61+
- content: "Three"
62+
isCorrect: false
63+
explanation: "Each operating system is paired with each version of Node.js for a total of six builds."
64+
- content: "Five"
65+
isCorrect: false
66+
explanation: "Each operating system is paired with each version of Node.js for a total of six builds."
6767
- content: "How can you pass data between jobs in a GitHub Actions workflow?"
68-
choices:
69-
- content: "By using the `needs` keyword."
70-
isCorrect: false
71-
explanation: "The `needs` keyword specifies the order in which jobs run, but it doesn't pass data between jobs."
72-
- content: "By using the `outputs` keyword."
73-
isCorrect: true
74-
explanation: "You can use the `outputs` keyword to pass data between jobs in a GitHub Actions workflow."
75-
- content: "By using the `env` keyword."
76-
isCorrect: false
77-
explanation: "The `env` keyword sets environment variables for a job, but it doesn't pass data between jobs."
78-
- content: "By using the `secrets` keyword."
79-
isCorrect: false
80-
explanation: "You can use the `secrets` keyword to access secrets in a job, but it doesn't pass data between jobs."
68+
choices:
69+
- content: "By using the `needs` keyword."
70+
isCorrect: false
71+
explanation: "The `needs` keyword specifies the order in which jobs run, but it doesn't pass data between jobs."
72+
- content: "By using the `outputs` keyword."
73+
isCorrect: true
74+
explanation: "You can use the `outputs` keyword to pass data between jobs in a GitHub Actions workflow."
75+
- content: "By using the `env` keyword."
76+
isCorrect: false
77+
explanation: "The `env` keyword sets environment variables for a job, but it doesn't pass data between jobs."
78+
- content: "By using the `secrets` keyword."
79+
isCorrect: false
80+
explanation: "You can use the `secrets` keyword to access secrets in a job, but it doesn't pass data between jobs."
8181

8282

0 commit comments

Comments
 (0)