fetchdepth 0 and show tagname

This commit is contained in:
Alex Janka 2024-08-01 11:50:09 +10:00
parent 5edb8a3552
commit 4a3f1b5389

View file

@ -14,7 +14,7 @@ jobs:
ref: refs/heads/main
token: ${{ secrets.GITHUB_TOKEN }}
fetch-tags: true
fetch-depth: 0
# fetch-depth: 0
# - name: stinky but
# run: git sparse-checkout disable; git checkout origin/main
- name: deepen tree
@ -23,4 +23,6 @@ jobs:
# run: git checkout --progress --force -B main refs/remotes/origin/main
- name: Get git describe for prerelease
id: describe
run: echo "tagname=pre-$(git describe --tags)" >> $GITHUB_OUTPUT
run: echo "tagname=pre-$(git describe --tags)" >> $GITHUB_OUTPUT
- name: show describe
run: echo ${{ steps.describe.outputs.tagname }}