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 @@ -8,15 +8,15 @@

jobs:
base-android-ci:
uses: GetStream/stream-build-conventions-android/.github/workflows/android-ci.yml@v1.0.1
uses: GetStream/stream-build-conventions-android/.github/workflows/android-ci.yml@v1.1.0
secrets: inherit

detekt:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}
name: Detekt
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4.2.2
- 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

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 @@ -11,5 +11,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 @@ -14,5 +14,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
52 changes: 1 addition & 51 deletions .github/workflows/publish-new-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
permissions:
contents: write
needs: pre_release_check
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: ${{ inputs.bump }}
suffix: ${{ inputs.suffix }}
Expand All @@ -63,53 +63,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 @@ -14,7 +14,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 @@ -9,12 +9,12 @@

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-offline stream-chat-android-ui-components stream-chat-android-compose"
metrics-project: "stream-chat-android-metrics"
secrets:
BUILD_CACHE_AWS_REGION: ${{ secrets.BUILD_CACHE_AWS_REGION }}
BUILD_CACHE_AWS_BUCKET: ${{ secrets.BUILD_CACHE_AWS_BUCKET }}
BUILD_CACHE_AWS_ACCESS_KEY_ID: ${{ secrets.BUILD_CACHE_AWS_ACCESS_KEY_ID }}
BUILD_CACHE_AWS_SECRET_KEY: ${{ secrets.BUILD_CACHE_AWS_SECRET_KEY }}

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}
2 changes: 1 addition & 1 deletion .github/workflows/sdk-size-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@

jobs:
update-sdk-sizes:
uses: GetStream/stream-build-conventions-android/.github/workflows/sdk-size-updates.yml@v1.0.1
uses: GetStream/stream-build-conventions-android/.github/workflows/sdk-size-updates.yml@v1.1.0
with:
modules: "stream-chat-android-client stream-chat-android-offline stream-chat-android-ui-components stream-chat-android-compose"
metrics-project: "stream-chat-android-metrics"
secrets:
GITHUB_PAT: ${{ secrets.STREAM_PUBLIC_BOT_TOKEN }}
BUILD_CACHE_AWS_REGION: ${{ secrets.BUILD_CACHE_AWS_REGION }}
BUILD_CACHE_AWS_BUCKET: ${{ secrets.BUILD_CACHE_AWS_BUCKET }}
BUILD_CACHE_AWS_ACCESS_KEY_ID: ${{ secrets.BUILD_CACHE_AWS_ACCESS_KEY_ID }}
BUILD_CACHE_AWS_SECRET_KEY: ${{ secrets.BUILD_CACHE_AWS_SECRET_KEY }}

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ room = "2.6.1"
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