summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorGiteabot <teabot@gitea.io>2023-06-19 23:07:51 -0400
committerGitHub <noreply@github.com>2023-06-20 03:07:51 +0000
commit10fcb55507339767863757ffaa4ae5b0e5b94c89 (patch)
treeb5e13c2c00a6d6adee4a03583c22894c7842fd41 /.github
parente9105ac281f8671142fdf74e46b45e6524c63e0a (diff)
downloadgitea-10fcb55507339767863757ffaa4ae5b0e5b94c89.tar.gz
gitea-10fcb55507339767863757ffaa4ae5b0e5b94c89.zip
Fetch all git data for embedding correct version in docker image (#25361) (#25373)
Backport #25361 by @techknowlogick Fix #25350 Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to '.github')
-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