diff --git a/.azure/ci.yml b/.azure/ci.yml index 86b9a424c..40443e760 100644 --- a/.azure/ci.yml +++ b/.azure/ci.yml @@ -53,7 +53,17 @@ jobs: node ./gitversion/setup/bundle.js displayName: gitversion/setup workingDirectory: dist/azure - - pwsh: node ./gitversion/execute/bundle.js + - pwsh: | + # set the inputs for the 'gitversion/execute' action + $env:INPUT_TARGETPATH = './' + $env:INPUT_DISABLECACHE = 'true' + $env:INPUT_DISABLENORMALIZATION = 'true' + $env:INPUT_OVERRIDECONFIG = ' + next-version=1.0.0 + update-build-number=false' + + # run the 'gitversion/execute' action + node ./gitversion/execute/bundle.js name: version displayName: gitversion/execute workingDirectory: dist/azure diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3343a90fd..9f0a54923 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,6 +47,13 @@ jobs: - name: gitversion/execute id: gitversion # step id used as reference for output values uses: ./gitversion/execute + with: + targetPath: './' + disableCache: true + disableNormalization: true + overrideConfig: | + next-version=1.0.0 + update-build-number=false - run: | echo "Major (major) : ${{ env.major }}" echo "Major (env.GitVersion_Major) : ${{ env.GitVersion_Major }}"