A push that ends on a green check
A push is finished when the check beside that commit is green.
A push is finished when the check beside that commit is green, not when the editor says the file was saved. To read that run on one whiteboard, use the header control to start a meeting
The search is the first push that ends on a green check. The Quickstart on docs.github.com, checked 2026-11-16, puts the file at .github/workflows/github-actions-demo.yml, triggers on: [push], runs job Explore-GitHub-Actions on ubuntu-latest, and checks out with actions/checkout@v6.
Put the file where GitHub looks
- 1
Create the path with Add file
On the repository, click Add file, then Create new file. Name it
.github/workflows/github-actions-demo.yml. If the folders are missing, that name creates.githubandworkflows. - 2
Paste the Quickstart YAML
Use the name
GitHub Actions Demo,on: [push], job idExplore-GitHub-Actions, andruns-on: ubuntu-latest. The checkout step isactions/checkout@v6, thenls ${{ github.workspace }}. The page also has echo steps and arun-name. Any file name is fine. The extension must be.ymlor.yaml, and the folder must be.github/workflows. - 3
Commit changes
Commit to the default branch, or to a new branch and open a pull request. The Quickstart says the commit on a branch triggers
push. The pull request is optional.
Open the run that went green
- 1
Click Actions
Under the repository name, click Actions. If the tab is missing, check whether Actions is disabled. The doc page is Managing GitHub Actions settings for a repository.
- 2
Open the workflow name
The sample name is GitHub Actions Demo. The run title comes from
run-name: the actor’s username plus is testing out GitHub Actions. - 3
Open the job log
Under Jobs, click
Explore-GitHub-Actionsand expand a step. Withghalready logged in,gh run list --workflow github-actions-demo.ymllists the same runs.
name: GitHub Actions Demo
on: [push]
jobs:
Explore-GitHub-Actions:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v6
- name: List files in the repository
run: |
ls ${{ github.workspace }}
| What you see | What the docs mean |
|---|---|
| success on this demo | echo, checkout@v6, and ls finished |
| a skipped job | also reports Success |
| your test command | not in this file |
No Actions tab
The repository may have Actions disabled. Open the repository settings before you create a second file with a new name.
The commit produced no run
The file is outside .github/workflows, or the extension is not yml/yaml. The commit has to land on a branch.
Green, and the tests never ran
Replace an echo with your test command and push again. The check follows only the commands you put in steps.
Path: Quickstart YAML, then Commit changes, then open Explore-GitHub-Actions under Actions. The checkout major version is whatever that day’s Quickstart shows. On 2026-11-16 it was actions/checkout@v6.
GitHub CLI login and PRs · Create and join a room · Cursor project rules · wbroom
Must the file be named github-actions-demo.yml?
No. Any name is allowed. The extension must be .yml or .yaml, and the file must sit in .github/workflows. That is the name the Quickstart uses.
Does a commit on a new branch run?
Yes. The Quickstart says the commit on a branch triggers on: [push] even if you then open a pull request. The pull request is not required.
Does the green check mean tests passed?
No. This sample is echoes, actions/checkout@v6, and ls. Put your test command in steps when you want tests. A skipped job also reports Success.
The Actions tab is missing. What now?
The Quickstart says a missing Actions tab can mean Actions is disabled for that repository. Turn it on in the repository settings. A different YAML will not help.