Skip to content

Commit

Permalink
New questions to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dostonhamrakulov committed Jun 15, 2024
1 parent c0254ff commit 84bdc8a
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 0 deletions.
13 changes: 13 additions & 0 deletions content/questions/actions/question-106.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
question: "What is the purpose of the `restore-keys` parameter in `actions/cache` in GitHub Actions?"
archetype: "questions"
title: "Question 105"
draft: false
---


> https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#managing-caches
1. [x] provide alternative keys to use in case of a cache miss
1. [ ] indicate whether a cache hit occurred
1. [ ] specify the location of the cached files
1. [ ] enable cross-OS cache functionality
12 changes: 12 additions & 0 deletions content/questions/actions/question-107.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
question: "Which variable would you set to `true` in order to enable step debug logging?"
archetype: "questions"
title: "Question 102"
draft: false
---

> https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows/enabling-debug-logging
1. [x] `ACTIONS_STEP_DEBUG`
1. [ ] `ACTIONS_JOB_DEBUG`
1. [ ] `ACTIONS_RUNNER_DEBUG`
1. [ ] `ACTIONS_WORKFLOW_DEBUG`
37 changes: 37 additions & 0 deletions content/questions/actions/question-108.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
question: "Which configuration is appropriate for triggering a workflow to run on webhook events related to check_run actions?"
archetype: "questions"
title: "Question 108"
draft: false
---


> https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#check_run
1. [x]
```yaml
on:
check_run:
types: [requested, completed]
```
1. [ ]
```yaml
on:
check_run:
types: [started]
```
1. [ ]
```yaml
on:
check_run:
type: [closed]
```
1. [ ]
```yaml
on:
check_run:
filter: [requested]
```
13 changes: 13 additions & 0 deletions content/questions/actions/question-109.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
question: "What is the purpose of the `timeout-minutes` keyword in a step?"
archetype: "questions"
title: "Question 109"
draft: false
---


> https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idtimeout-minutes
1. [x] it limits the execution time for individual commands within a step
1. [ ] it defines the time interval for individual commands within a step
1. [ ] it sets the timeout for waiting on external events before proceeding to the next step
1. [ ] it specifies the maximum duration a job is allowed to run

0 comments on commit 84bdc8a

Please sign in to comment.