diff --git a/.github/workflows/publish-snapshot.yml b/.github/workflows/publish-snapshot.yml
index 546fcd3b42..8aea563f5b 100644
--- a/.github/workflows/publish-snapshot.yml
+++ b/.github/workflows/publish-snapshot.yml
@@ -6,6 +6,11 @@ on:
- develop
workflow_dispatch:
+# 👇 This line ensures only one snapshot publish runs at a time.
+concurrency:
+ group: snapshot-publish
+ cancel-in-progress: false
+
jobs:
publish:
name: Snapshot build and publish
diff --git a/metrics/size.json b/metrics/size.json
index 8687b42b91..875f0bb09b 100644
--- a/metrics/size.json
+++ b/metrics/size.json
@@ -1,7 +1,7 @@
{
"debug": {
"stream-video-android-core": 13560,
- "stream-video-android-ui-xml": 7376,
+ "stream-video-android-ui-xml": 7392,
"stream-video-android-ui-compose": 9796
},
"release": {
diff --git a/scripts/show-last-snapshot-update.sh b/scripts/show-last-snapshot-update.sh
index 66a139dbd0..332fecd3df 100755
--- a/scripts/show-last-snapshot-update.sh
+++ b/scripts/show-last-snapshot-update.sh
@@ -5,13 +5,12 @@
# Extract groupId, artifactId, and snapshot version from the artifact string
groupId=$(echo $artifact | cut -d: -f1)
artifactId=$(echo $artifact | cut -d: -f2)
- snapshotVersion=$(echo $artifact | cut -d: -f3)
# Format the URL for the maven-metadata.xml file in the Nexus repository
- url="https://oss.sonatype.org/content/repositories/snapshots/$(echo $groupId | tr '.' '/')/$artifactId/$snapshotVersion/maven-metadata.xml"
+ url="https://central.sonatype.com/repository/maven-snapshots/io/getstream/stream-video-android-bom/maven-metadata.xml"
# Fetch the maven-metadata.xml using curl and extract the latest release version using sed
- latest_version=$(curl -s "$url" | sed -n 's|.*\(.*\).*|\1|p' | head -n 1)
+ latest_version=$(curl -s "$url" | sed -n 's/.*\(.*\)<\/latest>.*/\1/p')
# Print the result with the latest stable version
if [ -n "$latest_version" ]; then