From 5b777277a01a93e7f10c9279521e807b934e78d4 Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Mon, 7 Feb 2022 15:16:43 -0500 Subject: [PATCH] chore: enable auto release in java (#1349) * chore: fix auto-release * chore: remove codecov.yml * chore: update license headers for yaml files --- .../.github/workflows/approve-readme.yaml | 15 +++++++++++++++ .../.github/workflows/auto-release.yaml | 19 +++++++++++++++++-- .../java_library/.github/workflows/ci.yaml | 15 +++++++++++++++ .../.github/workflows/samples.yaml | 15 +++++++++++++++ .../templates/java_library/.kokoro/build.bat | 15 +++++++++++++++ .../gcp/templates/java_library/codecov.yaml | 4 ---- 6 files changed, 77 insertions(+), 6 deletions(-) delete mode 100644 synthtool/gcp/templates/java_library/codecov.yaml diff --git a/synthtool/gcp/templates/java_library/.github/workflows/approve-readme.yaml b/synthtool/gcp/templates/java_library/.github/workflows/approve-readme.yaml index c3025cb10..13c23ab88 100644 --- a/synthtool/gcp/templates/java_library/.github/workflows/approve-readme.yaml +++ b/synthtool/gcp/templates/java_library/.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/synthtool/gcp/templates/java_library/.github/workflows/auto-release.yaml b/synthtool/gcp/templates/java_library/.github/workflows/auto-release.yaml index f2585ecd6..12bc77919 100644 --- a/synthtool/gcp/templates/java_library/.github/workflows/auto-release.yaml +++ b/synthtool/gcp/templates/java_library/.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/synthtool/gcp/templates/java_library/.github/workflows/ci.yaml b/synthtool/gcp/templates/java_library/.github/workflows/ci.yaml index ddbe117e3..b2db4d4f2 100644 --- a/synthtool/gcp/templates/java_library/.github/workflows/ci.yaml +++ b/synthtool/gcp/templates/java_library/.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/synthtool/gcp/templates/java_library/.github/workflows/samples.yaml b/synthtool/gcp/templates/java_library/.github/workflows/samples.yaml index c46230a78..d5d964df1 100644 --- a/synthtool/gcp/templates/java_library/.github/workflows/samples.yaml +++ b/synthtool/gcp/templates/java_library/.github/workflows/samples.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: samples diff --git a/synthtool/gcp/templates/java_library/.kokoro/build.bat b/synthtool/gcp/templates/java_library/.kokoro/build.bat index 05826ad93..cc602c9eb 100644 --- a/synthtool/gcp/templates/java_library/.kokoro/build.bat +++ b/synthtool/gcp/templates/java_library/.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 diff --git a/synthtool/gcp/templates/java_library/codecov.yaml b/synthtool/gcp/templates/java_library/codecov.yaml deleted file mode 100644 index 5724ea947..000000000 --- a/synthtool/gcp/templates/java_library/codecov.yaml +++ /dev/null @@ -1,4 +0,0 @@ ---- -codecov: - ci: - - source.cloud.google.com