Q3
How do you configure workflow triggers, and what is the syntax for defining manual execution parameters?
💬Answer
Workflow triggers are defined under the on: block. To configure manual execution, use the workflow_dispatch trigger:
on:
workflow_dispatch:
inputs:
environment:
description: 'Target Environment'
required: true
default: 'staging'
This enables an "Run workflow" button in the GitHub Actions UI.
Related GitHub Actions Questions
View All GitHub ActionsQuestions →Q1
What is GitHub Actions, and how does it process workflows under the hood?
Q2Can you list and explain the key architectural components of GitHub Actions?
Q4What is a matrix strategy in GitHub Actions, and in what scenarios would you use it?
Q5How do GitHub-hosted runners compare to self-hosted runners? When is self-hosting required?

Created by
Apurv Gujjar
DevOps & Cloud Engineer
Specialized in:DevOpsAWSGCPKubernetesTerraformDocker
View Portfolio