Skip to content

A repository focused on the introduction of GitHub Action. There are three types of actions ranging from basic to medium to advance.

License

Notifications You must be signed in to change notification settings

dichloro/Introduction_GitHub_Actions

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Actions Workflow Examples

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.

I add something in this readme.

📘 Workflow Examples

1. Basic – Single Job with Multiple Event Triggers

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.

2. Medium – Workflow Dispatch and Scheduled Cron Job

This workflow uses:

  • workflow_dispatch for manual triggering via the GitHub UI
  • schedule 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.

3. Advanced – Docker Container, JavaScript, and Composite Actions

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.

🚀 How to Use

  1. Clone this repo:
    git clone https://github.com/your-username/github-actions-examples.git

About

A repository focused on the introduction of GitHub Action. There are three types of actions ranging from basic to medium to advance.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 69.2%
  • Shell 30.8%