Chris Arriola 6eb23eee45
chore: Add missing snippets (#316)
* chore: Add missing snippets.

* Add POI behavior

* License.

* Adding snippets for Maps Object.

* Add OnPoiClickDemoActivity

* Add LiteMode.

* Add street view sample code.

* Add missing headers.

* Marking activity as public.

* Making activity internal

* Move exclude.

* Adding snippets for Events.

* Add camera and view snippets.

* Adding MyLocationLayerActivity.

* Add snippets for Markers.

* Adding InfoWindows.

* Addiing snippets for Shapes.

* Add GroundOverlays snippets.

* Add tile overlays samples.

* Add AMU + GeoJSON samples.

* ADd KML snippets.

* Adding heatmaps.

* Add clustering.

* Add multilayer.
2020-09-23 15:14:56 -07:00

61 lines
1.8 KiB
YAML

# Copyright 2020 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.
name: Generate V3 Samples
on:
schedule:
- cron: '0 */1 * * *'
repository_dispatch:
types: [ generate-v3 ]
jobs:
generate-v3:
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- uses: actions/checkout@v2
- name: set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Install NDK
run: |
sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install "ndk;20.0.5594570"
- name: Generate V3
id: gradlew-generate-v3
run: |
cd ApiDemos/java
./gradlew generateV3 generateV3Layout
cd ../kotlin
./gradlew generateV3 generateV3Layout
echo "::set-output name=files-changed::$(git status -s | wc -l)"
- name: PR Changes
uses: peter-evans/create-pull-request@v2
if: steps.gradlew-generate-v3.outputs.files-changed > 0
with:
token: ${{ secrets.SYNCED_GITHUB_TOKEN_REPO }}
commit-message: 'chore: Generate V3 samples'
committer: googlemaps-bot <googlemaps-bot@google.com>
author: googlemaps-bot <googlemaps-bot@google.com>
title: 'chore: Generate V3 samples'
body: |
Generating V3 code via `./gradlew generateV3 generateV3Layout`
branch: googlemaps-bot/generate-v3