Skip to content

Commit

Permalink
Add questions
Browse files Browse the repository at this point in the history
  • Loading branch information
FidelusAleksander committed Aug 24, 2023
1 parent 858512d commit e36b992
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 7 deletions.
2 changes: 1 addition & 1 deletion content/questions/question-006.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions content/questions/question-020.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
16 changes: 16 additions & 0 deletions content/questions/question-021.md
Original file line number Diff line number Diff line change
@@ -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
11 changes: 11 additions & 0 deletions content/questions/question-022.md
Original file line number Diff line number Diff line change
@@ -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
14 changes: 14 additions & 0 deletions content/questions/question-023.md
Original file line number Diff line number Diff line change
@@ -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
12 changes: 12 additions & 0 deletions content/questions/question-024.md
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit e36b992

Please sign in to comment.