File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 5555 runs-on : ubuntu-latest
5656 steps :
5757 - uses : actions/checkout@v3
58+ # fetch all commits instead of only the last as some branches are long lived and could have many between versions
59+ # fetch all tags to ensure that "git describe" reports expected Gitea version, eg. v1.21.0-dev-1-g1234567
60+ - run : git fetch --unshallow --quiet --tags --force
5861 - uses : docker/setup-qemu-action@v2
5962 - uses : docker/setup-buildx-action@v2
6063 - name : Get cleaned branch name
Original file line number Diff line number Diff line change 7979STORED_VERSION_FILE := VERSION
8080HUGO_VERSION ?= 0.111.3
8181
82+ GITHUB_REF_TYPE ?= branch
83+ GITHUB_REF_NAME ?= $(shell git rev-parse --abbrev-ref HEAD)
84+
8285ifneq ($(GITHUB_REF_TYPE ) ,branch)
8386 VERSION ?= $(subst v,,$(GITHUB_REF_NAME))
8487 GITEA_VERSION ?= $(GITHUB_REF_NAME)
You can’t perform that action at this time.
0 commit comments