Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-cleanup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/pr-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/publish-api-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
52 changes: 1 addition & 51 deletions .github/workflows/publish-new-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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>-<tag> 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 <<EOF
> [!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
2 changes: 1 addition & 1 deletion .github/workflows/publish-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sdk-size-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sdk-size-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Loading