How to run a basic GitHub Actions workflow

Updated · DeskHowTo

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.

Jump to

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

  1. Open the repo on GitHub.com > Actions.
  2. Choose a starter (for example Node or Python) or set up a workflow yourself.
  3. Commit the YAML under .github/workflows/.

Trigger a run

  1. Push a commit that matches on: push branches, or
  2. Open Actions > your workflow > Run workflow if workflow_dispatch is set.
  3. Confirm a new run appears in the list.

Read the log

  1. Click the run, then a job, then expand failing steps.
  2. Fix the script or permissions and push again.
  3. 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/checks permissions 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.

Sources checked: GitHub Docs: Understanding GitHub Actions. Verified October 2026.