Pick your own Action
Description
Pick a action from the Github action market place
Spec
What it do. Acceptance criteria and all that.
GitHub Actions Quick Guide
What is a GitHub Action?
A GitHub Action is an automated task you can set up in your GitHub repository. It helps you automate workflows such as testing, building, or deploying your code whenever certain events (like a push or pull request) happen.
What is GitHub Marketplace?
The GitHub Marketplace is a collection of pre-built Actions and workflows created by the community. Instead of writing everything from scratch, you can use or customize existing actions for things like CI/CD, security checks, or notifications.
π Browse GitHub Marketplace
What is YAML?
YAML (YAML Ainβt Markup Language) is a human-readable data format used to configure workflows in GitHub Actions.
- It uses indentation (spaces) instead of brackets or semicolons.
- GitHub workflows are written as
.ymlor.yamlfiles.
Example:
name: CI Workflow
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: echo "Hello, GitHub Actions!"
How to Run GitHub Actions
-
Add a workflow file (.yml) inside your repo under .github/workflows/.
-
Commit and push the file to GitHub.
-
GitHub automatically triggers the action based on the on: event you defined (e.g., push, pull_request).
- You can monitor runs in the Actions tab of your repository.
Where Do Actions Live in the File Structure?
my-repo/
βββ .github/
β βββ workflows/
β βββ ci.yml
β βββ deploy.yml
βββ src/
βββ index.js