From fcd44ea9827df91062d7dbf425d72be33b64d57a Mon Sep 17 00:00:00 2001 From: Dmitry Smirnov Date: Mon, 4 Nov 2024 17:09:29 +0200 Subject: [PATCH 1/4] release-test --- .github/workflows/release-test.yml | 36 ++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/release-test.yml diff --git a/.github/workflows/release-test.yml b/.github/workflows/release-test.yml new file mode 100644 index 00000000..f5b1a0fe --- /dev/null +++ b/.github/workflows/release-test.yml @@ -0,0 +1,36 @@ +name: Release Test Workflow + +on: + push: + branches-ignore: latest + +jobs: + release-test: + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Clear GitVersion Cache + run: rm -rf .git/gitversion_cache + + - name: Set up GitVersion + uses: gittools/actions/gitversion/setup@v3.0.0 + with: + versionSpec: "5.12.0" + + - name: Determine Version + id: gitversion + uses: gittools/actions/gitversion/execute@v3.0.0 + with: + useConfigFile: true + configFilePath: ci/git-version.yml + env: + GITVERSION_PATH: /opt/hostedtoolcache/GitVersion.Tool/5.12.0 + + - name: Debug GitVersion Cache Directory + run: ls -la .git/gitversion_cache/ From f8b2ea14a37267638b8586d0ffcaedb5ee18937b Mon Sep 17 00:00:00 2001 From: Dmitry Smirnov Date: Mon, 4 Nov 2024 17:27:15 +0200 Subject: [PATCH 2/4] release-test --- .github/workflows/release-test.yml | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release-test.yml b/.github/workflows/release-test.yml index f5b1a0fe..b7db2063 100644 --- a/.github/workflows/release-test.yml +++ b/.github/workflows/release-test.yml @@ -1,8 +1,9 @@ +--- name: Release Test Workflow on: - push: - branches-ignore: latest + push: + branches-ignore: latest jobs: release-test: @@ -18,6 +19,9 @@ jobs: - name: Clear GitVersion Cache run: rm -rf .git/gitversion_cache + - name: Fetch All Tags + run: git fetch --tags --force + - name: Set up GitVersion uses: gittools/actions/gitversion/setup@v3.0.0 with: @@ -25,12 +29,18 @@ jobs: - name: Determine Version id: gitversion - uses: gittools/actions/gitversion/execute@v3.0.0 - with: - useConfigFile: true - configFilePath: ci/git-version.yml + run: | + $GITVERSION_PATH/dotnet-gitversion /output json /output buildserver /config ci/git-version.yml /verbosity diag env: GITVERSION_PATH: /opt/hostedtoolcache/GitVersion.Tool/5.12.0 + - name: Display GitVersion Output + run: | + echo "Full GitVersion output:" + echo "Version: ${{ steps.gitversion.outputs.semVer }}" + echo "FullSemVer: ${{ steps.gitversion.outputs.fullSemVer }}" + echo "MajorMinorPatch: ${{ steps.gitversion.outputs.majorMinorPatch }}" + echo "InformationalVersion: ${{ steps.gitversion.outputs.informationalVersion }}" + - name: Debug GitVersion Cache Directory run: ls -la .git/gitversion_cache/ From 165e28f87757573bffeab66d6134640aca43bffd Mon Sep 17 00:00:00 2001 From: Dmitry Smirnov Date: Mon, 4 Nov 2024 17:34:05 +0200 Subject: [PATCH 3/4] release-test --- .github/workflows/release-test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-test.yml b/.github/workflows/release-test.yml index b7db2063..b86ee150 100644 --- a/.github/workflows/release-test.yml +++ b/.github/workflows/release-test.yml @@ -30,9 +30,10 @@ jobs: - name: Determine Version id: gitversion run: | - $GITVERSION_PATH/dotnet-gitversion /output json /output buildserver /config ci/git-version.yml /verbosity diag + $GITVERSION_PATH/dotnet-gitversion /output json /output buildserver /config ci/git-version.yml env: GITVERSION_PATH: /opt/hostedtoolcache/GitVersion.Tool/5.12.0 + - name: Display GitVersion Output run: | From 99f6e2510dfc388c21dd6065293b187c9fd0cf9c Mon Sep 17 00:00:00 2001 From: Dmitry Smirnov Date: Mon, 4 Nov 2024 18:09:22 +0200 Subject: [PATCH 4/4] release workflow hotfix --- .github/workflows/release-test.yml | 47 ------------------------------ .github/workflows/release.yml | 3 ++ 2 files changed, 3 insertions(+), 47 deletions(-) delete mode 100644 .github/workflows/release-test.yml diff --git a/.github/workflows/release-test.yml b/.github/workflows/release-test.yml deleted file mode 100644 index b86ee150..00000000 --- a/.github/workflows/release-test.yml +++ /dev/null @@ -1,47 +0,0 @@ ---- -name: Release Test Workflow - -on: - push: - branches-ignore: latest - -jobs: - release-test: - runs-on: ubuntu-latest - permissions: - contents: read - steps: - - name: Checkout code - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Clear GitVersion Cache - run: rm -rf .git/gitversion_cache - - - name: Fetch All Tags - run: git fetch --tags --force - - - name: Set up GitVersion - uses: gittools/actions/gitversion/setup@v3.0.0 - with: - versionSpec: "5.12.0" - - - name: Determine Version - id: gitversion - run: | - $GITVERSION_PATH/dotnet-gitversion /output json /output buildserver /config ci/git-version.yml - env: - GITVERSION_PATH: /opt/hostedtoolcache/GitVersion.Tool/5.12.0 - - - - name: Display GitVersion Output - run: | - echo "Full GitVersion output:" - echo "Version: ${{ steps.gitversion.outputs.semVer }}" - echo "FullSemVer: ${{ steps.gitversion.outputs.fullSemVer }}" - echo "MajorMinorPatch: ${{ steps.gitversion.outputs.majorMinorPatch }}" - echo "InformationalVersion: ${{ steps.gitversion.outputs.informationalVersion }}" - - - name: Debug GitVersion Cache Directory - run: ls -la .git/gitversion_cache/ diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dd975fe1..d35f87bd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,6 +37,9 @@ jobs: restore-keys: | ${{ runner.os }}-buildx- + - name: Clear GitVersion Cache + run: rm -rf .git/gitversion_cache + - name: Install GitVersion uses: gittools/actions/gitversion/setup@v3.0.0 with: