What is the difference between `uses: ./path`, `uses: owner/repo@ref`, and `docker://` references?
BeginnerConceptGitHub Actions
Answer
uses: ./.github/actions/foo runs an action from the checked-out repo (checkout must run first). uses: owner/repo@ref pulls an action from another repository at a tag, branch or SHA (use owner/repo/subdir@ref for sub-path actions). uses: docker://alpine:3.20 runs a step directly in a public Docker image.
More on GitHub Actions
What are workflows, jobs, steps and actions in GitHub Actions?BeginnerWhat events can trigger a workflow?BeginnerWhat is the difference between `pull_request` and `pull_request_target`?AdvancedWhat is a runner, and how do GitHub-hosted and self-hosted runners differ?BeginnerHow do you pass data between steps and between jobs?IntermediateHow does a build matrix work?Intermediate