Skip to content
Discussion options

You must be logged in to vote

yes, it is absolutely possible. Since you are using a self-hosted runner, you actually have a slight advantage: you have direct access to the local git binary and the file system, which can be faster than hitting the GitHub API for every single tag.

Here are the two best ways to do this:

  1. The "Git Native" Way (Recommended)
    This is the most reliable method because it doesn't depend on API rate limits. You can pull all tags directly from the repository's history.

Crucial Step: You must ensure your actions/checkout step fetches the entire history, not just the latest commit. By default, GitHub only fetches a "depth" of 1.

YAML
steps:
  - name: Checkout code
    uses: actions/checkout@v4
   …

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@Rod-at-DOH
Comment options

@Rod-at-DOH
Comment options

Answer selected by Rod-at-DOH
Comment options

You must be logged in to vote
1 reply
@Rod-at-DOH
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD other General topics and discussions that don't fit into other categories, but are related to GitHub Question Ask and answer questions about GitHub features and usage Actions Runner For issues and discussions related to the Actions Runner project
4 participants