Skip to content

Local repository does not get new tag, only origin #240

Description

@zchenyu

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions