Master GitHub Actions with hands-on labs and exercises. Learn how to automate workflows, run tests, deploy applications, and more using GitHub's powerful automation platform. This repository has everything you need to get started with continuous integration and continuous deployment.
In this lab, you will create a manual workflow that can be triggered manually. The workflow will simply echo a message to the console, giving you a hands-on understanding of how manual workflows function in GitHub Actions.
Estimated Duration: 15-20 minutes
In the workflow editor:
intro-manual-workflow.yml
.name: Intro - Manual Workflow
on:
workflow_dispatch:
push:
paths:
- '.github/workflows/intro-manual-workflow.yml'
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: How's GitHub Actions?
run: echo "Awesome!!"
Click the Commit changes button to save the workflow. This will create a new file .github/workflows/intro-manual-workflow.yml
in your repository.
workflow_dispatch
: This allows you to run the workflow manually.push
: The workflow will also run when changes are pushed to .github/workflows/intro-manual-workflow.yml
.ubuntu-latest
runner and contains a single job named run
with one step that outputs the message: Awesome!!
.Go back to the Actions tab. You should see the newly created workflow listed there.
Click on the Run workflow button.
Monitor the workflow execution.
Awesome!!
displayed as the output of the step.In this lab, you created and ran a manual workflow in GitHub Actions. The workflow was triggered manually, ran a single job, and echoed a message to the console. This lab provided insight into how workflows are defined, triggered, and executed.