GitHub Actions workflow generator prompt
Generate a complete GitHub Actions YAML workflow for tests, builds, or deployments, with dependency caching included.
متى تستخدم هذا البرومبت
- When setting up CI for a new repository.
- When adding a deploy step to an existing test workflow.
- When migrating from another CI provider to GitHub Actions.
نص البرومبت
Write a GitHub Actions workflow (.yml) for a {{language}} project using {{framework}} that runs on: {{focus}}. Include caching where it speeds up the build.
{{CLIPBOARD}}{{language}}{{framework}}{{focus}}{{CLIPBOARD}}الكتلة {{CLIPBOARD}} تُستبدل تلقائياً بما نسخته قبل الضغط على «نسخ».
كيف تستخدمه
- انسخ البرومبت بالزر أو املأ المتغيرات أولاً.
- الصقه في ChatGPT أو Claude أو Gemini.
- عدّل النتيجة أو أعد الطلب بتغيير المتغيرات.
مثال على النتيجة
name: CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- run: npm ci
- run: npm testنصائح للاستخدام
- Specify triggers precisely (push to main, pull_request, tags) to avoid unwanted runs.
- Mention any required secrets by name so it references them via secrets.NAME correctly.
- Ask for a matrix build if you need to test multiple language or OS versions.
أسئلة شائعة
- Can it add a deployment step too?
- Yes, describe the target (Vercel, AWS, Docker Hub) in the focus field and it will add a deploy job guarded by a branch condition.
- Will it know my exact test command?
- Paste your package.json scripts or test runner config for an exact match; otherwise it uses common defaults for your framework.