diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9639561..4455da0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -52,7 +52,7 @@ jobs: server-image: name: Server Image needs: check - if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' + if: github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main') runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -97,7 +97,7 @@ jobs: agent-image: name: Agent Image needs: check - if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' + if: github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main') runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -142,7 +142,7 @@ jobs: agent-dev-binaries: name: Agent Dev Binaries needs: check - if: (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && !startsWith(github.ref, 'refs/tags/v') + if: (github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main')) && !startsWith(github.ref, 'refs/tags/v') runs-on: ubuntu-latest concurrency: group: dev-release