You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, hope you're good. I'm running some experiments in order to build a custom action that demands the tags from the repo. I noticed that it was possible, in theory, just using the fetch-tags: true, but it does not work. I can only get the tags if I use the fetch-depth: 0.
Example workflow:
jobs:
custom-action:
runs-on: ubuntu-22.04steps:
- name: Checkout repouses: actions/checkout@v4with:
path: tagactionfetch-tags: true
- name: Try to get the tagsrun: | cd tagaction git tag --sort -creatordate
The last command (git tag --sort -creatordate) shows nothing in this case.
But, if I use the fetch-depth: 0, it lists correctly the tags from the repository.
The text was updated successfully, but these errors were encountered:
Hello, hope you're good. I'm running some experiments in order to build a custom action that demands the tags from the repo. I noticed that it was possible, in theory, just using the
fetch-tags: true
, but it does not work. I can only get the tags if I use thefetch-depth: 0
.Example workflow:
The last command (
git tag --sort -creatordate
) shows nothing in this case.But, if I use the
fetch-depth: 0
, it lists correctly the tags from the repository.The text was updated successfully, but these errors were encountered: