From bce7a55663e7159b734009f732f58c3135b13adb Mon Sep 17 00:00:00 2001 From: Luca Scheller Date: Sat, 2 Sep 2023 23:07:59 +0200 Subject: [PATCH] Fetch all tags during upload --- .github/workflows/build_houdini.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_houdini.yml b/.github/workflows/build_houdini.yml index 670e641..cf0ab01 100644 --- a/.github/workflows/build_houdini.yml +++ b/.github/workflows/build_houdini.yml @@ -21,7 +21,7 @@ jobs: uses: actions/checkout@v3 - name: Switch to latest release tag run: | - git fetch --all --tags + git fetch --all --tags latest_release_tag=$(git tag -l --sort=-version:refname v* | head -1) git checkout tags/$latest_release_tag - name: Install system packages @@ -70,6 +70,7 @@ jobs: path: artifacts - name: Upload artifact as release asset run: | + git fetch --all --tags latest_release_tag=$(git tag -l --sort=-version:refname v* | head -1) gh release upload $latest_release_tag artifacts/*.zip --clobber env: