diff --git a/.github/workflows/deployment-arm64.yml b/.github/workflows/deployment-arm64.yml index 6e68d03c582..11b457e376f 100644 --- a/.github/workflows/deployment-arm64.yml +++ b/.github/workflows/deployment-arm64.yml @@ -49,13 +49,14 @@ jobs: uses: actions/checkout@v3 with: fetch-depth: 0 - - name: Install GitVersion - uses: gittools/actions/gitversion/setup@v0.9.15 - with: - versionSpec: "5.x" - name: Run GitVersion id: gitversion - uses: gittools/actions/gitversion/execute@v0.9.15 + shell: bash + run: | + echo "AssemblySemVer=5.9.`git rev-list v5.8..HEAD --count`" >> $GITHUB_OUTPUT + echo "InformationalVersion=5.9--`git log -1 --pretty='format:%cd' --date=format:'%Y-%m-%d'`--`git log -1 --format=%h`" >> $GITHUB_OUTPUT + echo "Major=5" >> $GITHUB_OUTPUT + echo "Minor=9" >> $GITHUB_OUTPUT - name: Set up JDK uses: actions/setup-java@v3 with: diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index c7a90179ec9..4867eab96c0 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -65,13 +65,14 @@ jobs: uses: actions/checkout@v3 with: fetch-depth: 0 - - name: Install GitVersion - uses: gittools/actions/gitversion/setup@v0.9.15 - with: - versionSpec: "5.x" - name: Run GitVersion id: gitversion - uses: gittools/actions/gitversion/execute@v0.9.15 + shell: bash + run: | + echo "AssemblySemVer=5.9.`git rev-list v5.8..HEAD --count`" >> $GITHUB_OUTPUT + echo "InformationalVersion=5.9--`git log -1 --pretty='format:%cd' --date=format:'%Y-%m-%d'`--`git log -1 --format=%h`" >> $GITHUB_OUTPUT + echo "Major=5" >> $GITHUB_OUTPUT + echo "Minor=9" >> $GITHUB_OUTPUT - name: Set up JDK uses: actions/setup-java@v3 with: