diff --git a/.github/header-checker-lint.yml b/.github/header-checker-lint.yml new file mode 100644 index 000000000..cd99ab88d --- /dev/null +++ b/.github/header-checker-lint.yml @@ -0,0 +1,35 @@ +# Copyright 2023 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. + +# Presubmit test that ensures that source files contain valid license headers +# https://github.com/googleapis/repo-automation-bots/tree/main/packages/header-checker-lint +# Install: https://github.com/apps/license-header-lint-gcf + +allowedCopyrightHolders: + - 'Google LLC' +allowedLicenses: + - 'Apache-2.0' +sourceFileExtensions: + - 'yaml' + - 'yml' + - 'sh' + - 'ts' + - 'js' + - 'java' + - 'md' + - 'html' + - 'txt' + - 'kt' + - 'kts' + - 'xml' diff --git a/.github/workflows/generate-v3.yml b/.github/workflows/generate-v3.yml index 3e68d0cad..f1e0e3493 100644 --- a/.github/workflows/generate-v3.yml +++ b/.github/workflows/generate-v3.yml @@ -15,8 +15,8 @@ name: Generate V3 Samples on: - schedule: - - cron: '0 */1 * * *' + push: + branches: [ main ] repository_dispatch: types: [ generate-v3 ] diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 30abc8bf3..6ba50645e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,11 +26,11 @@ jobs: with: token: ${{ secrets.SYNCED_GITHUB_TOKEN_REPO }} - - name: set up Java 11 - uses: actions/setup-java@v2 + - name: set up Java 17 + uses: actions/setup-java@v3 with: - distribution: 'adopt' - java-version: '11' + distribution: 'temurin' + java-version: '17' - name: Uninstall NDK run: |