From d1cd20da53cd5aed1d71a75b951ffe479e0b3121 Mon Sep 17 00:00:00 2001 From: Aleksandar Apostolov Date: Thu, 15 Oct 2026 14:10:12 +0200 Subject: [PATCH] chore(ci): move the build-conventions pins to v1.1.0 The release workflow now puts the Stream repository card in the release body itself, so a repo-local release-notes-header job goes in the same change. --- .github/workflows/pr-checks.yml | 4 +- .github/workflows/pr-cleanup.yaml | 2 +- .github/workflows/pr-quality.yml | 2 +- .github/workflows/publish-api-docs.yml | 2 +- .github/workflows/publish-new-version.yml | 52 +---------------------- .github/workflows/publish-snapshot.yml | 2 +- .github/workflows/sdk-size-checks.yml | 2 +- .github/workflows/sdk-size-updates.yml | 2 +- gradle/libs.versions.toml | 2 +- 9 files changed, 10 insertions(+), 60 deletions(-) diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index eab0e1901cda..aaa8639aed83 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -13,7 +13,7 @@ jobs: permissions: contents: read pull-requests: read - uses: GetStream/stream-build-conventions-android/.github/workflows/android-ci.yml@d275481d345e4b3b1252006dbb6cf029c9e32767 + uses: GetStream/stream-build-conventions-android/.github/workflows/android-ci.yml@d04ef720cd62d48430d0feef3ecd083df3482a9b secrets: BUILD_CACHE_AWS_REGION: ${{ secrets.BUILD_CACHE_AWS_REGION }} BUILD_CACHE_AWS_BUCKET: ${{ secrets.BUILD_CACHE_AWS_BUCKET }} @@ -28,7 +28,7 @@ jobs: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 - - uses: GetStream/stream-build-conventions-android/.github/actions/setup-gradle@v1.0.1 + - uses: GetStream/stream-build-conventions-android/.github/actions/setup-gradle@v1.1.0 - name: Detekt run: ./gradlew detekt rubocop: diff --git a/.github/workflows/pr-cleanup.yaml b/.github/workflows/pr-cleanup.yaml index bb44487fb244..3ec4ec09358c 100644 --- a/.github/workflows/pr-cleanup.yaml +++ b/.github/workflows/pr-cleanup.yaml @@ -12,5 +12,5 @@ permissions: jobs: pr-clean-stale: - uses: GetStream/stream-build-conventions-android/.github/workflows/pr-clean-stale.yaml@v1.0.1 + uses: GetStream/stream-build-conventions-android/.github/workflows/pr-clean-stale.yaml@v1.1.0 secrets: inherit diff --git a/.github/workflows/pr-quality.yml b/.github/workflows/pr-quality.yml index 354d6aff881d..fbb7b74622e8 100644 --- a/.github/workflows/pr-quality.yml +++ b/.github/workflows/pr-quality.yml @@ -15,5 +15,5 @@ concurrency: jobs: pr-checklist: - uses: GetStream/stream-build-conventions-android/.github/workflows/pr-quality.yml@v1.0.1 + uses: GetStream/stream-build-conventions-android/.github/workflows/pr-quality.yml@v1.1.0 secrets: inherit diff --git a/.github/workflows/publish-api-docs.yml b/.github/workflows/publish-api-docs.yml index 647dbb179fde..3deee17521ba 100644 --- a/.github/workflows/publish-api-docs.yml +++ b/.github/workflows/publish-api-docs.yml @@ -7,7 +7,7 @@ on: jobs: docs: - uses: GetStream/stream-build-conventions-android/.github/workflows/publish-api-docs.yml@d275481d345e4b3b1252006dbb6cf029c9e32767 + uses: GetStream/stream-build-conventions-android/.github/workflows/publish-api-docs.yml@d04ef720cd62d48430d0feef3ecd083df3482a9b permissions: contents: write secrets: diff --git a/.github/workflows/publish-new-version.yml b/.github/workflows/publish-new-version.yml index e490af66d5fd..c8872c02ee8b 100644 --- a/.github/workflows/publish-new-version.yml +++ b/.github/workflows/publish-new-version.yml @@ -49,7 +49,7 @@ jobs: permissions: contents: write needs: pre_release_check - uses: GetStream/stream-build-conventions-android/.github/workflows/release.yml@d275481d345e4b3b1252006dbb6cf029c9e32767 + uses: GetStream/stream-build-conventions-android/.github/workflows/release.yml@d04ef720cd62d48430d0feef3ecd083df3482a9b with: bump: ${{ inputs.bump }} suffix: ${{ inputs.suffix }} @@ -66,53 +66,3 @@ jobs: stream-repo-bucket: ${{ secrets.STREAM_REPO_BUCKET }} stream-repo-access-key-id: ${{ secrets.STREAM_REPO_ACCESS_KEY_ID }} stream-repo-secret-access-key: ${{ secrets.STREAM_REPO_SECRET_ACCESS_KEY }} - - # Customers need one line of setup to see a version that is not on Central, - # so say so at the top of the release, above the generated "What's Changed". - # A separate job because the release is created inside the reusable workflow. - release-notes-header: - needs: publish - if: ${{ inputs.publish-targets == 'streamRepo' }} - name: Add the Stream repository card to the release - runs-on: ubuntu-24.04 - permissions: - contents: write - steps: - - name: Prepend the card - env: - GH_TOKEN: ${{ github.token }} - run: | - set -euo pipefail - # The release this run created: the reusable workflow targets it at the - # release-- branch, and it was published after this run started. - # "Newest release" alone could be one made by hand, or one from another branch. - STARTED=$(gh api "repos/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" -q .created_at) - TAG=$(gh api "repos/$GITHUB_REPOSITORY/releases?per_page=30" -q " - [.[] | select((.target_commitish | startswith(\"release-${GITHUB_REF_NAME}-\")) - and .published_at != null and .published_at >= \"$STARTED\")] - | first | .tag_name // empty") - if [ -z "$TAG" ]; then - echo "::error::No release from this run found for ${GITHUB_REF_NAME}" - exit 1 - fi - - cat > card.md < [!IMPORTANT] - > **\`$TAG\` is published to the Stream Maven repository, not Maven Central.** - > - > \`\`\`kotlin - > // settings.gradle.kts - > dependencyResolutionManagement { - > repositories { - > google() - > mavenCentral() - > maven("https://stream-io-repo.com") - > } - > } - > \`\`\` - - EOF - - gh release view "$TAG" -R "$GITHUB_REPOSITORY" --json body -q .body > notes.md - cat card.md notes.md > body.md - gh release edit "$TAG" -R "$GITHUB_REPOSITORY" --notes-file body.md diff --git a/.github/workflows/publish-snapshot.yml b/.github/workflows/publish-snapshot.yml index fd757aec401b..6a5ca55fd9a9 100644 --- a/.github/workflows/publish-snapshot.yml +++ b/.github/workflows/publish-snapshot.yml @@ -12,7 +12,7 @@ jobs: release: permissions: contents: write - uses: GetStream/stream-build-conventions-android/.github/workflows/release.yml@v1.0.1 + uses: GetStream/stream-build-conventions-android/.github/workflows/release.yml@v1.1.0 with: bump: patch snapshot: true diff --git a/.github/workflows/sdk-size-checks.yml b/.github/workflows/sdk-size-checks.yml index bd745508e1ec..d755f866327a 100644 --- a/.github/workflows/sdk-size-checks.yml +++ b/.github/workflows/sdk-size-checks.yml @@ -13,7 +13,7 @@ concurrency: jobs: compare-sdk-sizes: - uses: GetStream/stream-build-conventions-android/.github/workflows/sdk-size-checks.yml@v1.0.1 + uses: GetStream/stream-build-conventions-android/.github/workflows/sdk-size-checks.yml@v1.1.0 with: modules: "stream-chat-android-client stream-chat-android-ui-components stream-chat-android-compose stream-chat-android-ai-compose stream-chat-android-ai-ondevice" metrics-project: "stream-chat-android-metrics" diff --git a/.github/workflows/sdk-size-updates.yml b/.github/workflows/sdk-size-updates.yml index dc37f17a2299..b44c4e68760f 100644 --- a/.github/workflows/sdk-size-updates.yml +++ b/.github/workflows/sdk-size-updates.yml @@ -15,7 +15,7 @@ jobs: update-sdk-sizes: permissions: contents: read - uses: GetStream/stream-build-conventions-android/.github/workflows/sdk-size-updates.yml@d275481d345e4b3b1252006dbb6cf029c9e32767 + uses: GetStream/stream-build-conventions-android/.github/workflows/sdk-size-updates.yml@d04ef720cd62d48430d0feef3ecd083df3482a9b with: modules: "stream-chat-android-client stream-chat-android-ui-components stream-chat-android-compose stream-chat-android-ai-compose stream-chat-android-ai-ondevice" metrics-project: "stream-chat-android-metrics" diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 90e3c3f9f092..08012c167f64 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -82,7 +82,7 @@ room = "2.7.2" shimmer = "0.5.0" shimmerCompose = "1.3.1" shot = "6.1.0" -streamConventions = "1.0.1" +streamConventions = "1.1.0" streamLog = "1.3.2" streamPush = "1.3.1" streamResult = "1.4.1"