diff --git a/content/questions/actions/question-106.md b/content/questions/actions/question-106.md new file mode 100644 index 0000000..b761c34 --- /dev/null +++ b/content/questions/actions/question-106.md @@ -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 diff --git a/content/questions/actions/question-107.md b/content/questions/actions/question-107.md new file mode 100644 index 0000000..258b9f4 --- /dev/null +++ b/content/questions/actions/question-107.md @@ -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` diff --git a/content/questions/actions/question-108.md b/content/questions/actions/question-108.md new file mode 100644 index 0000000..033f5a6 --- /dev/null +++ b/content/questions/actions/question-108.md @@ -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] +``` diff --git a/content/questions/actions/question-109.md b/content/questions/actions/question-109.md new file mode 100644 index 0000000..14d6b7c --- /dev/null +++ b/content/questions/actions/question-109.md @@ -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