From a720e7f032090f3fd598276f071e6d9eca5d6eb2 Mon Sep 17 00:00:00 2001 From: magnus Date: Wed, 11 Sep 2024 14:30:39 +0200 Subject: [PATCH] updated workflows --- .github/workflows/workflow_pr.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/workflow_pr.yml b/.github/workflows/workflow_pr.yml index e5150bf0..e4c5e60c 100644 --- a/.github/workflows/workflow_pr.yml +++ b/.github/workflows/workflow_pr.yml @@ -35,6 +35,23 @@ jobs: id: install_path_id_ubuntu run: echo "install_path_ubuntu=multisense_${{ env.MAJOR }}.${{ env.MINOR }}-${{ env.PATCH }}_amd64/opt/multisense" >> $GITHUB_OUTPUT + - name: Fetch all tags + run: git fetch --tags + + - name: Get the latest tag + id: get_tag + run: echo "::set-output name=TAG::$(git describe --tags --abbrev=0)" + + - name: Print version + run: echo "The version is ${{ steps.get_tag.outputs.TAG }}" + + - name: Set Output + id: install_path_id + run: echo "install_path=multisense_${{ steps.get_tag.outputs.TAG }}_amd64" >> $GITHUB_OUTPUT + + - name: Set Output Ubuntu + id: install_path_id_ubuntu + run: echo "install_path_ubuntu=multisense_${{ steps.get_tag.outputs.TAG }}_amd64/opt/multisense" >> $GITHUB_OUTPUT BuildWindows: name: Build For Windows