Skip to content

Commit

Permalink
updated update_resources.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
superakabo committed Oct 1, 2024
1 parent 2270d26 commit 10e4aa5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source_release_id
Original file line number Diff line number Diff line change
@@ -1 +1 @@
null
176787019
11 changes: 10 additions & 1 deletion update_resources.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ brew install jq
# Extract the latest release id using jq.
latest_release_id=$(curl -s https://api.github.com/repos/google/libphonenumber/releases/latest | jq -r '.id')
#
echo "latest release id: $latest_release_id"
#
# Check if latest_release_id is "null" and exit.
if [ "$latest_release_id" = "null" ]; then
echo "Failed to retrieve the latest release ID."
exit 0
fi
#
#
filename="./source_release_id"
#
# Check if the file exists
Expand Down Expand Up @@ -158,7 +167,7 @@ if [ "$GITHUB_ACTIONS" = "true" ]; then
git push origin main
#
# Create a new release tag.
git tag -a "v$version_number" -m "Metadata updates\n$release_notes"
git tag -a "v$version_number" -m "Metadata updates" -m "$release_notes"
git push origin "v$version_number"
else
# Attempt to publish Dart code to see possible issues.
Expand Down

0 comments on commit 10e4aa5

Please sign in to comment.