chore: update workflows (#1385)

This commit is contained in:
Angela Yu 2023-11-07 01:48:24 -08:00 committed by GitHub
parent 2647732b1a
commit 608e1a0f59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 41 additions and 6 deletions

35
.github/header-checker-lint.yml vendored Normal file
View File

@ -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'

View File

@ -15,8 +15,8 @@
name: Generate V3 Samples
on:
schedule:
- cron: '0 */1 * * *'
push:
branches: [ main ]
repository_dispatch:
types: [ generate-v3 ]

View File

@ -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: |