diff --git a/.github/workflows/_build.yml b/.github/workflows/_build.yml index 31ae6af..3d08d79 100644 --- a/.github/workflows/_build.yml +++ b/.github/workflows/_build.yml @@ -14,7 +14,7 @@ jobs: name: Build & Test steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Install .NET SDK uses: actions/setup-dotnet@v3 @@ -28,7 +28,9 @@ jobs: - name: Create build number run: | now=$(date +'%Y%m%d') - echo "BUILD_NUMBER=$now.$GITHUB_RUN_NUMBER" >> $GITHUB_ENV + buildNumber=$now.$GITHUB_RUN_NUMBER + echo "BUILD_NUMBER=$buildNumber" >> $GITHUB_ENV + echo "$buildNumber" - name: Build run: dotnet build --configuration Release --no-restore -p:BuildNumber=$BUILD_NUMBER -p:SourceRevisionId=$GITHUB_SHA -p:ContinuousIntegrationBuild=true diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dab9db2..6cd20f7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,7 +27,7 @@ jobs: steps: - name: Download artifacts - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 - name: Setup .NET SDK uses: actions/setup-dotnet@v3 @@ -39,7 +39,7 @@ jobs: run: dotnet nuget push **/ci/*.nupkg -s "GPR" --skip-duplicate - name: Delete old packages - uses: smartsquaregmbh/delete-old-packages@v0.4.0 + uses: smartsquaregmbh/delete-old-packages@v0.5.0 with: keep: 5 names: ${{ env.PACKAGE_ID }}