diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 782bee4..580c409 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -49,6 +49,12 @@ jobs: runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 + - run: git fetch --tags origin + - name: 'Get Previous tag' + id: previoustag + uses: "WyriHaximus/github-action-get-previous-tag@v1" + with: + fallback: 0.0.1 - name: Get Maya Devkit id: get-devkit @@ -63,6 +69,7 @@ jobs: setup-args: > -Dmaya:maya_version=${{ matrix.maya }} -Dmaya:maya_devkit_base=${{ steps.get-devkit.outputs.devkit-path }} + -DVERSION_STRING=${{ steps.previoustag.outputs.tag }} --buildtype release --backend ninja diff --git a/src/pluginMain.cpp b/src/pluginMain.cpp index 06f0d6c..8476ef8 100644 --- a/src/pluginMain.cpp +++ b/src/pluginMain.cpp @@ -32,7 +32,7 @@ SOFTWARE. MStatus initializePlugin( MObject obj ) { MStatus status; - MFnPlugin plugin( obj, "BlurStudio", "1.2.1", "Any"); + MFnPlugin plugin( obj, "BlurStudio", VERSION_STRING, "Any"); status = plugin.registerData("twistSplineData", TwistSplineData::id, TwistSplineData::creator); if (!status) {