Skip to content

Commit 1a5b7c8

Browse files
Fetch all git data for embedding correct version in docker image (#25361)
Fix #25350
1 parent 49a77e3 commit 1a5b7c8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/release-nightly.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ jobs:
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

0 commit comments

Comments
 (0)