actions / checkout

Action for checking out a repo

Home Page:https://github.com/features/actions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fetch-tags=true do not work when fetch-depth > 0

marcindabrowski opened this issue · comments

Description of the fetch-tags says: Whether to fetch tags, even if fetch-depth > 0,
but it seems that action in version 4.1.1 do not pull the tags, only the PR branch.

I set these action options:

fetch-depth: 1
fetch-tags: true
ref: ${{ github.head_ref }}

duplicate of #1467.
From my exp, the posted workaround works (git fetch manually)

Description of the fetch-tags says: Whether to fetch tags, even if fetch-depth > 0, but it seems that action in version 4.1.1 do not pull the tags, only the PR branch.

I set these action options:

fetch-depth: 1
fetch-tags: true
ref: ${{ github.head_ref }}