diff --git a/.github/workflows/build-and-publish-pre-release.yml b/.github/workflows/build-and-publish-pre-release.yml index 6bb53dad..f89245e8 100644 --- a/.github/workflows/build-and-publish-pre-release.yml +++ b/.github/workflows/build-and-publish-pre-release.yml @@ -122,7 +122,7 @@ jobs: CREATE_RELEASE: false - name: "Build and deploy" - if: startsWith(runner.name, 'buildagent-') != true + if: env.USE_NUGET_CACHE != 'true' uses: ./.github/actions/build with: PRODUCTION_BUILD: False