From e36b992acb6603983ae9c59ffddf6c9fc3db137b Mon Sep 17 00:00:00 2001 From: Aleksander Fidelus Date: Thu, 24 Aug 2023 15:45:39 +0200 Subject: [PATCH] Add questions --- content/questions/question-006.md | 2 +- content/questions/question-020.md | 12 ++++++------ content/questions/question-021.md | 16 ++++++++++++++++ content/questions/question-022.md | 11 +++++++++++ content/questions/question-023.md | 14 ++++++++++++++ content/questions/question-024.md | 12 ++++++++++++ 6 files changed, 60 insertions(+), 7 deletions(-) create mode 100644 content/questions/question-021.md create mode 100644 content/questions/question-022.md create mode 100644 content/questions/question-023.md create mode 100644 content/questions/question-024.md diff --git a/content/questions/question-006.md b/content/questions/question-006.md index 0cec893e..3d16348d 100644 --- a/content/questions/question-006.md +++ b/content/questions/question-006.md @@ -8,7 +8,7 @@ subject: [] # Which is true about workflows? > https://docs.github.com/en/actions/using-workflows/about-workflows - [x] Workflows can run one or multiple jobs at a time -- [x] Workflows can only be triggered manually, by an event or run on a schedule +- [x] Workflows can be triggered manually, by an event or run on a schedule - [x] Workflows have to be defined in the `.github/workflows` directory - [ ] Workflows can only be run on a schedule - [ ] Workflow can run one job at a time diff --git a/content/questions/question-020.md b/content/questions/question-020.md index 2fa5deba..2d9024e5 100644 --- a/content/questions/question-020.md +++ b/content/questions/question-020.md @@ -5,9 +5,9 @@ draft: false subject: [] --- -# What workflow_run event trigger will TODO -> https://docs.github.com/en/actions/using-workflows/triggering-a-workflow#using-filters-to-target-specific-branches-for-workflow-run-events -1. [x] 1 -1. [ ] 2 -1. [ ] 4 -1. [ ] 3 +# Which event allows You to manually trigger a workflow from the GitHub UI? +> https://docs.github.com/en/actions/using-workflows/manually-running-a-workflow +1. [x] workflow_dispatch +1. [ ] manual_dispatch +1. [ ] workflow_trigger +1. [ ] manual_trigger diff --git a/content/questions/question-021.md b/content/questions/question-021.md new file mode 100644 index 00000000..0e82c303 --- /dev/null +++ b/content/questions/question-021.md @@ -0,0 +1,16 @@ +--- +title: "Question 021" +date: 2023-08-24T14:23:56+02:00 +draft: false +subject: [] +--- + +# What are the possible types of an input variable for a manually triggered workflow? +> https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onworkflow_dispatchinputs +- [x] True +- [x] boolean +- [x] string +- [x] environment +- [ ] number +- [ ] dropdown +- [ ] select diff --git a/content/questions/question-022.md b/content/questions/question-022.md new file mode 100644 index 00000000..dfb5d834 --- /dev/null +++ b/content/questions/question-022.md @@ -0,0 +1,11 @@ +--- +title: "Question 022" +date: 2023-08-24T14:24:00+02:00 +draft: false +subject: [] +--- + +# A workflow that has only workflow_dispatch event trigger can be triggered using GitHub's REST API +> https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onworkflow_dispatchinputs +1. [x] True +1. [ ] False diff --git a/content/questions/question-023.md b/content/questions/question-023.md new file mode 100644 index 00000000..3b6b7fa6 --- /dev/null +++ b/content/questions/question-023.md @@ -0,0 +1,14 @@ +--- +title: "Question 023" +date: 2023-08-24T14:24:02+02:00 +draft: false +subject: [] +--- + + +# To stop a workflow from running temporarily without modyfing the source code You should +> https://docs.github.com/en/actions/using-workflows/disabling-and-enabling-a-workflow +1. [x] Use the **Disable workflow** option in GitHub Actions +1. [ ] Remove secrets that are required for this workflow +1. [ ] Delete environment that is required for this workflow +1. [ ] Prevent any new commits to main branch diff --git a/content/questions/question-024.md b/content/questions/question-024.md new file mode 100644 index 00000000..044ffbb0 --- /dev/null +++ b/content/questions/question-024.md @@ -0,0 +1,12 @@ +--- +title: "Question 024" +date: 2023-08-24T14:24:03+02:00 +draft: false +subject: [] +--- + +# What are activity types of an event used for ? +> https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#about-events-that-trigger-workflows +1. [x] Limiting workflow runs to specific activity types using the **types** filter +1. [ ] Checking if the activity comes from an user or a bot +1. [ ] Reacting to new activity on a repository (e.g new contributor)