FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
android-maps-compose/.github/workflows/update-skill.yml at main · googlemaps/android-maps-compose · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
googlemaps
/
android-maps-compose
Public
Notifications
You must be signed in to change notification settings
Fork
182
Star
1.3k
Code
Issues
77
Pull requests
14
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
android-maps-compose
/
.github
/
workflows
/
update-skill.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
74 lines (65 loc) · 2.7 KB
Breadcrumbs
android-maps-compose
/
.github
/
workflows
/
update-skill.yml
Copy path
File metadata and controls
74 lines (65 loc) · 2.7 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#
Copyright 2026 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
:
Update Skill
on
:
release
:
types
:
[published]
workflow_dispatch
:
permissions
:
contents
:
read
jobs
:
update-skill
:
runs-on
:
ubuntu-latest
steps
:
-
name
:
Checkout
uses
:
actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
#
v7.0.1
with
:
fetch-depth
:
0
#
Fetch all history for tags and diffs
token
:
${{ secrets.SYNCED_GITHUB_TOKEN_REPO }}
-
name
:
Setup Python
uses
:
actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97
#
v7.0.0
with
:
python-version
:
'
3.11
'
-
name
:
Generate Diff
run
:
|
# The new release tag is GITHUB_REF_NAME when triggered on release
# Find the tag immediately preceding this one
PREVIOUS_TAG=$(git describe --tags --abbrev=0 ${GITHUB_REF_NAME}^ 2>/dev/null || echo "")
if [ -z "$PREVIOUS_TAG" ]; then
# If no previous tag, diff against the initial commit
INITIAL_COMMIT=$(git rev-list --max-parents=0 HEAD)
git diff $INITIAL_COMMIT..HEAD > release_diff.patch
else
git diff $PREVIOUS_TAG..$GITHUB_REF_NAME > release_diff.patch
fi
-
name
:
Update Skill via Gemini
env
:
GEMINI_API_KEY
:
${{ secrets.GEMINI_API_KEY }}
run
:
|
python .github/scripts/update_skill.py
rm release_diff.patch
-
name
:
Create Pull Request
uses
:
peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1
#
v8.1.1
with
:
token
:
${{ secrets.SYNCED_GITHUB_TOKEN_REPO }}
commit-message
:
"
docs: update SKILL.md based on release ${{ github.ref_name }}
"
author
:
googlemaps-bot <googlemaps-bot@google.com>
committer
:
googlemaps-bot <googlemaps-bot@google.com>
title
:
"
docs: update SKILL.md for release ${{ github.ref_name }}
"
body
:
"
Automatically generated PR to update `SKILL.md` for the latest release `${{ github.ref_name }}`.
"
branch
:
"
update-skill-for-${{ github.ref_name }}
"
base
:
main
labels
:
|
docs
automerge
Back
|
FazBrowse Home
|
New Git URL