From 791d77cf07f067eb5b7bc687c3bcf5ceabbfd453 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 7 Feb 2022 22:08:59 +0000 Subject: [PATCH] chore: enable auto release in java (#1349) (#314) * chore: fix auto-release * chore: remove codecov.yml * chore: update license headers for yaml files Source-Link: https://github.com/googleapis/synthtool/commit/5b777277a01a93e7f10c9279521e807b934e78d4 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:ebc2104854c5b81c6fd72ca79400a2e20e0d510c5e0654fd1a19e5c9be160ca6 --- java-common-protos/.github/.OwlBot.lock.yaml | 2 +- .../.github/workflows/approve-readme.yaml | 15 +++++++++++++++ .../.github/workflows/auto-release.yaml | 19 +++++++++++++++++-- java-common-protos/.github/workflows/ci.yaml | 15 +++++++++++++++ java-common-protos/.kokoro/build.bat | 15 +++++++++++++++ 5 files changed, 63 insertions(+), 3 deletions(-) diff --git a/java-common-protos/.github/.OwlBot.lock.yaml b/java-common-protos/.github/.OwlBot.lock.yaml index 8807efcad4..a8ddd81ae9 100644 --- a/java-common-protos/.github/.OwlBot.lock.yaml +++ b/java-common-protos/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:7c853edc4136ae8f19f9d46d4569d38de2e446db2eea057f32e412bdba255846 + digest: sha256:ebc2104854c5b81c6fd72ca79400a2e20e0d510c5e0654fd1a19e5c9be160ca6 diff --git a/java-common-protos/.github/workflows/approve-readme.yaml b/java-common-protos/.github/workflows/approve-readme.yaml index c513242798..1bb1823276 100644 --- a/java-common-protos/.github/workflows/approve-readme.yaml +++ b/java-common-protos/.github/workflows/approve-readme.yaml @@ -1,3 +1,18 @@ +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Github action job to test core java library features on +# downstream client libraries before they are released. on: pull_request: name: auto-merge-readme diff --git a/java-common-protos/.github/workflows/auto-release.yaml b/java-common-protos/.github/workflows/auto-release.yaml index 59c7cadde3..2ba3082bee 100644 --- a/java-common-protos/.github/workflows/auto-release.yaml +++ b/java-common-protos/.github/workflows/auto-release.yaml @@ -1,3 +1,18 @@ +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Github action job to test core java library features on +# downstream client libraries before they are released. on: pull_request: name: auto-release @@ -16,8 +31,8 @@ jobs: return; } - // only approve PRs like "chore: release " - if ( !context.payload.pull_request.title.startsWith("chore: release") ) { + // only approve PRs like "chore(main): release " + if ( !context.payload.pull_request.title.startsWith("chore(main): release") ) { return; } diff --git a/java-common-protos/.github/workflows/ci.yaml b/java-common-protos/.github/workflows/ci.yaml index 05de1f60dc..6b5e56aaac 100644 --- a/java-common-protos/.github/workflows/ci.yaml +++ b/java-common-protos/.github/workflows/ci.yaml @@ -1,3 +1,18 @@ +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Github action job to test core java library features on +# downstream client libraries before they are released. on: push: branches: diff --git a/java-common-protos/.kokoro/build.bat b/java-common-protos/.kokoro/build.bat index 05826ad93f..cc602c9eba 100644 --- a/java-common-protos/.kokoro/build.bat +++ b/java-common-protos/.kokoro/build.bat @@ -1,3 +1,18 @@ :: See documentation in type-shell-output.bat +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Github action job to test core java library features on +# downstream client libraries before they are released. "C:\Program Files\Git\bin\bash.exe" %~dp0build.sh