From 56df6d88979b1752204e2262c38dea6175debad1 Mon Sep 17 00:00:00 2001 From: Alex Wichmann Date: Fri, 10 Jan 2025 09:46:18 +0100 Subject: [PATCH] Update release-beta.yml --- .github/workflows/release-beta.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-beta.yml b/.github/workflows/release-beta.yml index 866db6ea..b795b9c0 100644 --- a/.github/workflows/release-beta.yml +++ b/.github/workflows/release-beta.yml @@ -38,9 +38,15 @@ jobs: - name: Setup .NET Core @ Latest uses: actions/setup-dotnet@v1 - + + - name: run number with offset + env: + NUM: ${{ github.run_number }} + run: | + echo ::set-env name=GITHUB_RUN_NUMBER_WITH_OFFSET::$(($NUM+100)) + - run: echo ${{env.GITHUB_RUN_NUMBER_WITH_OFFSET}} - name: Build ${{ matrix.package-name }} project and pack NuGet package - run: dotnet pack src/${{ matrix.package-name }}/${{ matrix.package-name }}.csproj -c Release -o out-${{ matrix.package-name }} -p:PackageVersion=${{ needs.check.outputs.version }}-beta.${{github.run_number+99}} + run: dotnet pack src/${{ matrix.package-name }}/${{ matrix.package-name }}.csproj -c Release -o out-${{ matrix.package-name }} -p:PackageVersion=${{ needs.check.outputs.version }}-beta.${{env.GITHUB_RUN_NUMBER_WITH_OFFSET}} - name: Push generated package to GitHub Packages registry run: dotnet nuget push out-${{ matrix.package-name }}/*.nupkg -s https://api.nuget.org/v3/index.json --skip-duplicate -n --api-key ${{secrets.NUGET}}