Skip to content

Commit 19e3aa5

Browse files
committed
Fetch tags in git checkout to fix master workflow
GitHub Actions performs a shallow clone that doesn't include all tags by default so this command: LATEST_GIT_TAG=$(git describe --tags --abbrev=0) Was failing with: fatal: No names found, cannot describe anything. This setting makes the checkout fetch the tags as well
1 parent bf7446f commit 19e3aa5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/reusable-docker-publish.yml

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222
steps:
2323
- name: Checkout
2424
uses: actions/checkout@v4
25+
with:
26+
fetch-tags: true
2527

2628
- name: Set up Docker Buildx
2729
uses: docker/setup-buildx-action@v3

0 commit comments

Comments
 (0)