github-actions-workflow▌
aj-geddes/useful-ai-prompts · updated Apr 8, 2026
Create powerful GitHub Actions workflows to automate testing, building, security scanning, and deployment processes directly from your GitHub repository.
GitHub Actions Workflow
Table of Contents
Overview
Create powerful GitHub Actions workflows to automate testing, building, security scanning, and deployment processes directly from your GitHub repository.
When to Use
- Continuous integration and testing
- Build automation
- Security scanning and analysis
- Dependency updates
- Automated deployments
- Release management
- Code quality checks
Quick Start
Minimal working example:
# .github/workflows/ci.yml
name: CI/CD Pipeline
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
steps:
- uses: actions/checkout@v3
- name: Setup Node ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
// ... (see reference guides for full implementation)
Reference Guides
Detailed implementations in the references/ directory:
| Guide | Contents |
|---|---|
| Complete CI/CD Workflow | Complete CI/CD Workflow |
| Automated Release Workflow | Automated Release Workflow |
| Docker Build and Push | Docker Build and Push |
Best Practices
✅ DO
- Use caching for dependencies (npm, pip, Maven)
- Run tests in parallel with matrix strategy
- Require status checks on protected branches
- Use environment secrets and variables
- Implement conditional jobs with
if: - Lint and format before testing
- Set explicit permissions with permissions
- Use runner labels for specific hardware
- Cache Docker layers for faster builds
❌ DON'T
- Store secrets in workflow files
- Run untrusted code in workflows
- Use
secrets.*with pull requests from forks - Hardcode credentials or tokens
- Miss error handling with
continue-on-error - Create overly complex workflows
- Skip testing on pull requests
Discussion
Product Hunt–style comments (not star reviews)- No comments yet — start the thread.
Ratings
4.6★★★★★47 reviews- ★★★★★Arjun Jackson· Dec 28, 2024
Useful defaults in github-actions-workflow — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
- ★★★★★Dev Mehta· Dec 16, 2024
github-actions-workflow is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
- ★★★★★Xiao Diallo· Dec 12, 2024
I recommend github-actions-workflow for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
- ★★★★★Nikhil Lopez· Dec 12, 2024
Registry listing for github-actions-workflow matched our evaluation — installs cleanly and behaves as described in the markdown.
- ★★★★★Xiao Haddad· Dec 8, 2024
github-actions-workflow reduced setup friction for our internal harness; good balance of opinion and flexibility.
- ★★★★★Valentina Ramirez· Nov 27, 2024
github-actions-workflow is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
- ★★★★★Valentina Sanchez· Nov 7, 2024
github-actions-workflow reduced setup friction for our internal harness; good balance of opinion and flexibility.
- ★★★★★Chinedu Diallo· Nov 3, 2024
Keeps context tight: github-actions-workflow is the kind of skill you can hand to a new teammate without a long onboarding doc.
- ★★★★★Valentina Ndlovu· Oct 26, 2024
Registry listing for github-actions-workflow matched our evaluation — installs cleanly and behaves as described in the markdown.
- ★★★★★Chinedu Khan· Oct 22, 2024
github-actions-workflow is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
showing 1-10 of 47