diff --git a/.github/workflows/conformance-tests-bigtable-proxy.yaml b/.github/workflows/conformance-tests-bigtable-proxy.yaml index 558b2bec346..0c66dac573d 100644 --- a/.github/workflows/conformance-tests-bigtable-proxy.yaml +++ b/.github/workflows/conformance-tests-bigtable-proxy.yaml @@ -14,12 +14,8 @@ # Github action job to test core java library features on # downstream client libraries before they are released. on: - push: - branches: - - main - paths: - - 'Bigtable/**' - - '.github/workflows/conformance-tests-bigtable-proxy.yaml' + release: + types: [published] pull_request: paths: - 'Bigtable/**' diff --git a/.github/workflows/conformance-tests-gax-showcase.yaml b/.github/workflows/conformance-tests-gax-showcase.yaml index 7e3f5569bf8..9e525176ac2 100644 --- a/.github/workflows/conformance-tests-gax-showcase.yaml +++ b/.github/workflows/conformance-tests-gax-showcase.yaml @@ -1,8 +1,7 @@ name: Run GAX Conformance Tests With Showcase on: - push: - branches: - - main + release: + types: [published] pull_request: permissions: contents: read diff --git a/.github/workflows/conformance-tests-storage-emulator.yaml b/.github/workflows/conformance-tests-storage-emulator.yaml index 5af1989d1bc..9515198fffc 100644 --- a/.github/workflows/conformance-tests-storage-emulator.yaml +++ b/.github/workflows/conformance-tests-storage-emulator.yaml @@ -1,10 +1,6 @@ on: - push: - branches: - - main - paths: - - 'Storage/**' - - '.github/workflows/conformance-tests-storage-emulator.yaml' + release: + types: [published] pull_request: paths: - 'Storage/**' diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 61bf37e25ae..729e31ac4f6 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -1,7 +1,7 @@ name: DocFX Test Suite on: - push: - branches: [ main ] + release: + types: [published] pull_request: workflow_dispatch: diff --git a/.github/workflows/emulator-system-tests-bigtable.yaml b/.github/workflows/emulator-system-tests-bigtable.yaml index 1c3508311d7..1a1cb53b02e 100644 --- a/.github/workflows/emulator-system-tests-bigtable.yaml +++ b/.github/workflows/emulator-system-tests-bigtable.yaml @@ -1,11 +1,6 @@ on: - push: - branches: - - main - paths: - - 'Bigtable/**' - - '.github/workflows/emulator-system-tests-bigtable.yaml' - - '.github/emulator/**' + release: + types: [published] pull_request: paths: - 'Bigtable/**' diff --git a/.github/workflows/emulator-system-tests-datastore.yaml b/.github/workflows/emulator-system-tests-datastore.yaml index 60446db1ce2..f3492c9c924 100644 --- a/.github/workflows/emulator-system-tests-datastore.yaml +++ b/.github/workflows/emulator-system-tests-datastore.yaml @@ -1,11 +1,6 @@ on: - push: - branches: - - main - paths: - - 'Datastore/**' - - '.github/workflows/emulator-system-tests-datastore.yaml' - - '.github/emulator/**' + release: + types: [published] pull_request: paths: - 'Datastore/**' diff --git a/.github/workflows/emulator-system-tests-firestore.yaml b/.github/workflows/emulator-system-tests-firestore.yaml index af565c76931..324ec953d91 100644 --- a/.github/workflows/emulator-system-tests-firestore.yaml +++ b/.github/workflows/emulator-system-tests-firestore.yaml @@ -1,11 +1,6 @@ on: - push: - branches: - - main - paths: - - 'Firestore/**' - - '.github/workflows/emulator-system-tests-firestore.yaml' - - '.github/emulator/**' + release: + types: [published] pull_request: paths: - 'Firestore/**' diff --git a/.github/workflows/emulator-system-tests-pubsub.yaml b/.github/workflows/emulator-system-tests-pubsub.yaml index 5eab9eb74c5..fb1eb315530 100644 --- a/.github/workflows/emulator-system-tests-pubsub.yaml +++ b/.github/workflows/emulator-system-tests-pubsub.yaml @@ -1,11 +1,6 @@ on: - push: - branches: - - main - paths: - - 'PubSub/**' - - '.github/workflows/emulator-system-tests-pubsub.yaml' - - '.github/emulator/**' + release: + types: [published] pull_request: paths: - 'PubSub/**' diff --git a/.github/workflows/emulator-system-tests-spanner.yaml b/.github/workflows/emulator-system-tests-spanner.yaml index 8db92b43746..3e2e65f7629 100644 --- a/.github/workflows/emulator-system-tests-spanner.yaml +++ b/.github/workflows/emulator-system-tests-spanner.yaml @@ -1,10 +1,6 @@ on: - push: - branches: - - main - paths: - - 'Spanner/**' - - '.github/workflows/emulator-system-tests-spanner.yaml' + release: + types: [published] pull_request: paths: - 'Spanner/**' diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index c4b9cc6aaad..c28029492a3 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -1,7 +1,7 @@ name: CS Test Suite on: - push: - branches: [ main ] + release: + types: [published] pull_request: workflow_dispatch: diff --git a/.github/workflows/unit-tests.yaml b/.github/workflows/unit-tests.yaml index 65dbadee99e..03e0c469c7e 100644 --- a/.github/workflows/unit-tests.yaml +++ b/.github/workflows/unit-tests.yaml @@ -1,7 +1,7 @@ name: Test Suite on: - push: - branches: [ main ] + release: + types: [published] pull_request: workflow_dispatch: @@ -102,7 +102,7 @@ jobs: extensions: grpc - name: Run Package Test Suites env: - PREFER_LOWEST: ${{ github.event.pull_request.user.login == 'release-please[bot]' && '--prefer-lowest-strict' || '--prefer-lowest' }} + PREFER_LOWEST: ${{ (github.event.pull_request.user.login == 'release-please[bot]' || github.event_name == 'release') && '--prefer-lowest-strict' || '--prefer-lowest' }} run: bash .github/run-package-tests.sh $PREFER_LOWEST test_dev_commands: