Skip to content

I am not able to fetch all tags #2095

Closed
@tillbrodbeck-oviva

Description

@tillbrodbeck-oviva

Looking at

name: Foo Bar

on:
  push:
    branches:
      - main

jobs:
  tag-dependabot-prs:
    name: Build & Tag containers for Dependabot PR
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0
          fetch-tags: true

      - name: Tag changed base images
        run: |
          git fetch --prune --tags
          git tag | wc -l

Locally, using act, I am seeing 885 (all of the) tags. When I run it on GitHub online, it only gives me like 8 tags (only the current commit).

I have also tried a distinct step to fetch tags - also does not work

  - name: Fetch all tags
    run: git fetch --tags --force

This must be a bug, right? Or am I doing something wrong. Anyone has a good workaround for the moment?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions