This repository contains three practical examples of GitHub Actions workflows—ranging from basic to advanced—designed to help you learn how to create automation pipelines using different GitHub Actions features.
This example demonstrates how to create a workflow with a single job triggered by multiple events such as:
push
pull_request
issues
📁 File: .github/workflows/basic.yml
Useful for: Simple CI tasks, like running tests or linting on code pushes or pull requests.
This workflow uses:
workflow_dispatch
for manual triggering via the GitHub UIschedule
for automatic execution based on a cron schedule
📁 File: .github/workflows/medium.yml
Useful for: Running recurring tasks such as backups, cleanups, or report generation.
A more sophisticated setup combining:
- Docker container as the job environment
- JavaScript GitHub Action to run a custom script
- Composite Action for compilling multiple actions
📁 File: .github/workflows/advanced.yml
Custom Actions:
- JavaScript Action:
js-actions/
- Composite Action:
actions/composite/
Useful for: Building modular, maintainable, and portable CI/CD workflows.
- Clone this repo:
git clone https://github.com/your-username/github-actions-examples.git