diff --git a/.github/workflows/go-compile-yourself.yml b/.github/workflows/go-compile-yourself.yml index 30bce6c0..3291550f 100644 --- a/.github/workflows/go-compile-yourself.yml +++ b/.github/workflows/go-compile-yourself.yml @@ -4,7 +4,6 @@ on: push: branches: - 'feature/**' - - master pull_request: branches: - master @@ -30,7 +29,7 @@ jobs: timeout-minutes: 30 env: - PACKAGE_VERSION: ${{ github.event_name == 'workflow_dispatch' && inputs.version || github.ref == 'refs/heads/master' && '5.0.0' || format('5.0.0-feature.{0}', github.run_number) }} + PACKAGE_VERSION: ${{ github.event_name == 'workflow_dispatch' && inputs.version || format('5.0.0-feature.{0}', github.run_number) }} PACKAGE_SOURCE: https://nuget.pkg.github.com/nuviot/index.json NUGET_GITHUB_TOKEN: ${{ secrets.NUGET_GITHUB_TOKEN }} @@ -71,7 +70,7 @@ jobs: if-no-files-found: error - name: Publish packages - if: ${{ (github.event_name == 'workflow_dispatch' && inputs.publish) || (github.event_name == 'push' && github.ref == 'refs/heads/master' && startsWith(github.event.head_commit.message, 'Publish Core TestBase 5.0.0')) }} + if: ${{ github.event_name == 'workflow_dispatch' && inputs.publish }} shell: pwsh run: | if ([string]::IsNullOrWhiteSpace($env:NUGET_GITHUB_TOKEN)) { @@ -96,7 +95,7 @@ jobs: } - name: Verify published package restores - if: ${{ (github.event_name == 'workflow_dispatch' && inputs.publish) || (github.event_name == 'push' && github.ref == 'refs/heads/master' && startsWith(github.event.head_commit.message, 'Publish Core TestBase 5.0.0')) }} + if: ${{ github.event_name == 'workflow_dispatch' && inputs.publish }} shell: pwsh run: | dotnet nuget locals all --clear