Skip to content

Commit fee4810

Browse files
address @denischilik comments
1 parent 0f9c632 commit fee4810

File tree

2 files changed

+16
-22
lines changed

2 files changed

+16
-22
lines changed

.github/workflows/release-ecosystem-from-main.yml

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
name: Release mParticle Ecosystem
1+
name: Publish Ecosystem Releases from Main
2+
# Build each kit, mirror its subtree repo, and publish a GitHub release/tag (unless dry run).
23

34
on:
45
push:
@@ -23,24 +24,7 @@ permissions:
2324
contents: write
2425

2526
jobs:
26-
prepare:
27-
runs-on: ubuntu-latest
28-
outputs:
29-
version: ${{ steps.version.outputs.version }}
30-
tag: ${{ steps.version.outputs.tag }}
31-
steps:
32-
- uses: actions/checkout@v6
33-
34-
- name: Get ecosystem version
35-
id: version
36-
run: |
37-
VERSION=$(head -n 1 VERSION | tr -d '\r\n ')
38-
echo "version=$VERSION" >> $GITHUB_OUTPUT
39-
echo "tag=v$VERSION" >> $GITHUB_OUTPUT
40-
echo "📌 Ecosystem version: $VERSION"
41-
4227
mirror-and-release-kits:
43-
needs: prepare
4428
runs-on: macOS-latest
4529
env:
4630
DEST_ORG: mparticle-integrations
@@ -74,6 +58,14 @@ jobs:
7458
with:
7559
fetch-depth: 0
7660

61+
- name: Get ecosystem version
62+
id: version
63+
run: |
64+
VERSION=$(head -n 1 VERSION | tr -d '\r\n ')
65+
echo "version=$VERSION" >> $GITHUB_OUTPUT
66+
echo "tag=v$VERSION" >> $GITHUB_OUTPUT
67+
echo "📌 Ecosystem version: $VERSION"
68+
7769
- name: Select Xcode
7870
run: sudo xcode-select -s /Applications/Xcode_${{ env.XCODE_VERSION }}.app
7971

@@ -143,7 +135,7 @@ jobs:
143135
if: env.DRY_RUN != 'true'
144136
uses: ncipollo/release-action@b7eabc95ff50cbeeedec83973935c8f306dfcd0b # v1.20.0
145137
with:
146-
tag: ${{ needs.prepare.outputs.tag }}
138+
tag: ${{ steps.version.outputs.tag }}
147139
commit: ${{ steps.push.outputs.sha }}
148140
owner: ${{ env.DEST_ORG }}
149141
repo: ${{ matrix.kit.dest_repo }}
@@ -163,7 +155,7 @@ jobs:
163155
| **Kit** | \`${{ matrix.kit.name }}\` |
164156
| **Source** | \`${{ matrix.kit.local_path }}\` |
165157
| **Destination** | \`${{ env.DEST_ORG }}/${{ matrix.kit.dest_repo }}\` |
166-
| **Tag** | \`${{ needs.prepare.outputs.tag }}\` |
158+
| **Tag** | \`${{ steps.version.outputs.tag }}\` |
167159
| **Dry Run** | \`${{ env.DRY_RUN }}\` |
168160
| **Artifact** | \`${{ matrix.kit.module }}.xcframework.zip\` |
169161

.github/workflows/sdk-release-ecosystem-manual.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
name: iOS SDK Ecosystem Release
1+
name: Create Ecosystem Release PR (Manual)
2+
# Ensure the manual release process only starts from the main branch.
3+
# Bump ecosystem versions and open a release PR that triggers publish-on-main after merge.
24

35
on:
46
workflow_dispatch:
@@ -142,5 +144,5 @@ jobs:
142144
143145
---
144146
145-
**On merge:** The [Release mParticle Ecosystem](https://github.com/mParticle/mparticle-apple-sdk/actions/workflows/release-ecosystem-from-main.yml) workflow will automatically create tags and GitHub releases for the core SDK and all mirrored kit repos." \
147+
**On merge:** The [Publish Ecosystem Releases from Main](https://github.com/mParticle/mparticle-apple-sdk/actions/workflows/release-ecosystem-from-main.yml) workflow will automatically create tags and GitHub releases for the core SDK and all mirrored kit repos." \
146148
--reviewer mParticle/sdk-team

0 commit comments

Comments
 (0)