
actions-1) and add a README. Open the repository’s Actions tab and click Configure to create a starter workflow — GitHub will create .github/workflows/<your-file>.yml for you.

actions/checkout, the runner will not have your repository files by default — ls will show an empty workspace and cat README.md will fail.
When a workflow runs, GitHub prints runner setup information (OS, image versions, and a long list of preinstalled tools). You can review the hosted runner images and available tools in the documentation.


actions/checkout@v4.
Key differences in workflow syntax:
Always include
- uses: actions/checkout@v4 (or the appropriate version) as the first step if your job needs repository files. Note: hidden files (like .github) won’t appear with ls unless you run ls -a.cat README.md will succeed. Here is the final example workflow:
ls listing README.md, and the README content printed in the logs:
- Browse the GitHub Marketplace for pre-built actions: https://github.com/marketplace
- Each action repository documents inputs, outputs, and examples.
- Define triggers in your workflow YAML.
- Run jobs on runners (hosted or self-hosted).
- Use
actions/checkoutto access repository files. - Combine Marketplace
usesactions withrunshell steps to build, test, and deploy.
If your job needs repository content, do not forget
actions/checkout. Missing this step is the most common cause of “No such file or directory” errors when reading files in Actions.- GitHub Actions documentation: https://docs.github.com/en/actions
- About GitHub-hosted runners: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners