Skip to content

Commit a722d46

Browse files
chore(ci): move the build-conventions pins to v1.1.0 (#1879)
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.
1 parent 5302b46 commit a722d46

9 files changed

Lines changed: 9 additions & 59 deletions

‎.github/workflows/android.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
permissions:
2424
contents: read
2525
pull-requests: read
26-
uses: GetStream/stream-build-conventions-android/.github/workflows/android-ci.yml@d275481d345e4b3b1252006dbb6cf029c9e32767
26+
uses: GetStream/stream-build-conventions-android/.github/workflows/android-ci.yml@d04ef720cd62d48430d0feef3ecd083df3482a9b
2727
secrets:
2828
BUILD_CACHE_AWS_REGION: ${{ secrets.BUILD_CACHE_AWS_REGION }}
2929
BUILD_CACHE_AWS_BUCKET: ${{ secrets.BUILD_CACHE_AWS_BUCKET }}

‎.github/workflows/pr-clean-old-drafts.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ permissions:
1212

1313
jobs:
1414
pr-clean-stale:
15-
uses: GetStream/stream-build-conventions-android/.github/workflows/pr-clean-stale.yaml@v1.0.1
15+
uses: GetStream/stream-build-conventions-android/.github/workflows/pr-clean-stale.yaml@v1.1.0
1616
secrets: inherit

‎.github/workflows/pr-quality.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ concurrency:
1414

1515
jobs:
1616
pr-checklist:
17-
uses: GetStream/stream-build-conventions-android/.github/workflows/pr-quality.yml@v1.0.1
17+
uses: GetStream/stream-build-conventions-android/.github/workflows/pr-quality.yml@v1.1.0
1818
secrets: inherit

‎.github/workflows/publish-api-docs.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
docs:
10-
uses: GetStream/stream-build-conventions-android/.github/workflows/publish-api-docs.yml@d275481d345e4b3b1252006dbb6cf029c9e32767
10+
uses: GetStream/stream-build-conventions-android/.github/workflows/publish-api-docs.yml@d04ef720cd62d48430d0feef3ecd083df3482a9b
1111
permissions:
1212
contents: write
1313
secrets:

‎.github/workflows/publish-new-version.yml‎

Lines changed: 1 addition & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
permissions:
4949
contents: write
5050
needs: pre_release_check
51-
uses: GetStream/stream-build-conventions-android/.github/workflows/release.yml@d275481d345e4b3b1252006dbb6cf029c9e32767
51+
uses: GetStream/stream-build-conventions-android/.github/workflows/release.yml@d04ef720cd62d48430d0feef3ecd083df3482a9b
5252
with:
5353
bump: ${{ inputs.bump }}
5454
suffix: ${{ inputs.suffix }}
@@ -65,53 +65,3 @@ jobs:
6565
stream-repo-bucket: ${{ secrets.STREAM_REPO_BUCKET }}
6666
stream-repo-access-key-id: ${{ secrets.STREAM_REPO_ACCESS_KEY_ID }}
6767
stream-repo-secret-access-key: ${{ secrets.STREAM_REPO_SECRET_ACCESS_KEY }}
68-
69-
# Customers need one line of setup to see a version that is not on Central,
70-
# so say so at the top of the release, above the generated "What's Changed".
71-
# A separate job because the release is created inside the reusable workflow.
72-
release-notes-header:
73-
needs: publish
74-
if: ${{ inputs.publish-targets == 'streamRepo' }}
75-
name: Add the Stream repository card to the release
76-
runs-on: ubuntu-24.04
77-
permissions:
78-
contents: write
79-
steps:
80-
- name: Prepend the card
81-
env:
82-
GH_TOKEN: ${{ github.token }}
83-
run: |
84-
set -euo pipefail
85-
# The release this run created: the reusable workflow targets it at the
86-
# release-<branch>-<tag> branch, and it was published after this run started.
87-
# "Newest release" alone could be one made by hand, or one from another branch.
88-
STARTED=$(gh api "repos/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" -q .created_at)
89-
TAG=$(gh api "repos/$GITHUB_REPOSITORY/releases?per_page=30" -q "
90-
[.[] | select((.target_commitish | startswith(\"release-${GITHUB_REF_NAME}-\"))
91-
and .published_at != null and .published_at >= \"$STARTED\")]
92-
| first | .tag_name // empty")
93-
if [ -z "$TAG" ]; then
94-
echo "::error::No release from this run found for ${GITHUB_REF_NAME}"
95-
exit 1
96-
fi
97-
98-
cat > card.md <<EOF
99-
> [!IMPORTANT]
100-
> **\`$TAG\` is published to the Stream Maven repository, not Maven Central.**
101-
>
102-
> \`\`\`kotlin
103-
> // settings.gradle.kts
104-
> dependencyResolutionManagement {
105-
> repositories {
106-
> google()
107-
> mavenCentral()
108-
> maven("https://stream-io-repo.com")
109-
> }
110-
> }
111-
> \`\`\`
112-
113-
EOF
114-
115-
gh release view "$TAG" -R "$GITHUB_REPOSITORY" --json body -q .body > notes.md
116-
cat card.md notes.md > body.md
117-
gh release edit "$TAG" -R "$GITHUB_REPOSITORY" --notes-file body.md

‎.github/workflows/publish-snapshot.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
release:
1414
permissions:
1515
contents: write
16-
uses: GetStream/stream-build-conventions-android/.github/workflows/release.yml@v1.0.1
16+
uses: GetStream/stream-build-conventions-android/.github/workflows/release.yml@v1.1.0
1717
with:
1818
bump: patch
1919
snapshot: true

‎.github/workflows/sdk-size-checks.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ concurrency:
1313

1414
jobs:
1515
compare-sdk-sizes:
16-
uses: GetStream/stream-build-conventions-android/.github/workflows/sdk-size-checks.yml@v1.0.1
16+
uses: GetStream/stream-build-conventions-android/.github/workflows/sdk-size-checks.yml@v1.1.0
1717
with:
1818
modules: "stream-video-android-core stream-video-android-ui-xml stream-video-android-ui-compose"
1919
metrics-project: "stream-video-android-metrics"

‎.github/workflows/sdk-size-updates.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
update-sdk-sizes:
1616
permissions:
1717
contents: read
18-
uses: GetStream/stream-build-conventions-android/.github/workflows/sdk-size-updates.yml@d275481d345e4b3b1252006dbb6cf029c9e32767
18+
uses: GetStream/stream-build-conventions-android/.github/workflows/sdk-size-updates.yml@d04ef720cd62d48430d0feef3ecd083df3482a9b
1919
with:
2020
modules: "stream-video-android-core stream-video-android-ui-xml stream-video-android-ui-compose"
2121
metrics-project: "stream-video-android-metrics"

‎gradle/libs.versions.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ allureKotlin = "2.4.0"
1111
androidGradlePlugin = "8.9.1"
1212
cameraCamera2 = "1.3.4"
1313
spotless = "6.21.0"
14-
streamConventions = "1.0.1"
14+
streamConventions = "1.1.0"
1515
kotlin = "1.9.25"
1616
ksp = "1.9.25-1.0.20"
1717
kotlinSerialization = "1.6.3"

0 commit comments

Comments
 (0)