How to run a basic GitHub Actions workflow
On GitHub.com (verified 2026-10-24), open your repository, go to the Actions tab, pick a starter workflow (or create .github/workflows/ci.yml), commit it to the default branch, then push a change (or use Run workflow for workflow_dispatch). Open the run to watch jobs and steps.
Public repos get generous free minutes; private repos and orgs use included minutes or billing. Workflows need Actions enabled for the repo and any required secrets stored under Settings > Secrets.
Applies to GitHub.com repositories where Actions is allowed. Org policies can disable Actions or restrict which workflows run. You need write access to add workflow files. YAML lives in .github/workflows/.
Add and run your first workflow
Create the workflow
- Open the repo on GitHub.com > Actions.
- Choose a starter (for example Node or Python) or set up a workflow yourself.
- Commit the YAML under
.github/workflows/.
Trigger a run
- Push a commit that matches
on: pushbranches, or - Open Actions > your workflow > Run workflow if
workflow_dispatchis set. - Confirm a new run appears in the list.
Read the log
- Click the run, then a job, then expand failing steps.
- Fix the script or permissions and push again.
- Add repository secrets for tokens instead of hard-coding them.
Our take: start with lint + test only
One job that installs and runs tests beats a 12-job matrix on day one. Expand after the green check is reliable.
If it fails
- Actions tab disabled: org/repo policy — ask an admin to enable Actions.
- Permission denied / GITHUB_TOKEN: grant
contents/checkspermissions in the workflow or repo settings. - Secret missing: add it under Settings > Secrets and variables > Actions.
- Minutes exhausted: check billing for private repos; wait for reset or upgrade.
Frequently asked questions
What is GitHub Actions?
GitHub’s CI/CD system that runs workflows from YAML in your repository when events happen.
Where do workflow files live?
In .github/workflows/*.yml (or .yaml) on a branch GitHub can read.
How do I run a workflow manually?
Add workflow_dispatch to on:, then use Actions > Run workflow.
Actions vs Codespaces?
Actions automate builds/tests/deploys; Codespaces is a cloud editor for you to code in.
Are Actions free?
Public repos include free minutes; private usage depends on your plan’s included minutes and billing settings.