aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authortechknowlogick <techknowlogick@gitea.io>2023-06-19 14:51:35 -0400
committerGitHub <noreply@github.com>2023-06-19 18:51:35 +0000
commit1a5b7c86a311c8ff8f9e4ba867379a9b7fa102b5 (patch)
tree0517c8f6d01cc17d5a5bfb2a9e399f06bc49840a /.github/workflows
parent49a77e37ba2aed2cccae5166c021e049953e299c (diff)
downloadgitea-1a5b7c86a311c8ff8f9e4ba867379a9b7fa102b5.tar.gz
gitea-1a5b7c86a311c8ff8f9e4ba867379a9b7fa102b5.zip
Fetch all git data for embedding correct version in docker image (#25361)
Fix #25350
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/release-nightly.yml3
1 files changed, 3 insertions, 0 deletions
diff --git a/.github/workflows/release-nightly.yml b/.github/workflows/release-nightly.yml
index 71ec6dae84..1868673f17 100644
--- a/.github/workflows/release-nightly.yml
+++ b/.github/workflows/release-nightly.yml
@@ -55,6 +55,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
+ # fetch all commits instead of only the last as some branches are long lived and could have many between versions
+ # fetch all tags to ensure that "git describe" reports expected Gitea version, eg. v1.21.0-dev-1-g1234567
+ - run: git fetch --unshallow --quiet --tags --force
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
- name: Get cleaned branch name