mathieudutour / mathieudutour/github-tag-action

Local repository does not get new tag, only origin

Open
#240 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
733
Forks
227
PR merge metrics
No merged PRs in 30d

Description

Hey, just confirming if this is the expected behavior.

I have:
```
- name: Create new tag
id: tag
uses: mathieudutour/github-tag-action@v6.2
with:
github_token: ${{ github.token }}
fetch_all_tags: true
tag_prefix: releases/foo/

- name: Show
run: |
git tag -l 'releases/foo/*'
```

The `git tag -l` doesn't show the new tag that "Create new tag" generates.

```
Analysis of 4 commits complete: no release
New version is 0.0.20-debug-release-tag.0.
New tag after applying prefix is releases/foo/0.0.20-debug-release-tag.0.
Changelog is ### [0.0.20-debug-release-tag.0](https://github.com/xxx/xxx/compare/releases/foo/0.0.19...releases/foo/0.0.20-debug-release-tag.0) (2025-11-21)
.
Run git tag -l 'releases/foo/*'
git tag -l 'releases/foo/*'
shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
releases/foo/0.0.17
releases/foo/0.0.18
releases/foo/0.0.19
releases/foo/0.0.19-fix-tmate.0
```

And if so, is it possible to get the tag locally so I don't have to re-run a `git fetch`?

Contributor guide

Open the contributing guide

Research direction

Start with the workflow's “Create new tag” and “Show” steps, then inspect the action entry point responsible for creating and pushing tags. Reproduce the tag listing with `git tag -l 'releases/foo/*'` and determine whether the generated tag should be available locally without a separate fetch.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, github-actions, typescript
Domain
ci-cd, release
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.