Skip to content

Commit e235073

Browse files
fix:Correct Manual Release Action (#503)
1 parent 19f8265 commit e235073

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

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

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,13 @@ jobs:
8686
- name: Delete existing release branch if present
8787
run: |
8888
# Delete remote branch if it exists (ignore errors if it doesn't)
89-
git push origin --delete release/v${VERSION} 2>/dev/null || true
89+
git push origin --delete chore/release-v${VERSION} 2>/dev/null || true
9090
# Delete local branch if it exists
91-
git branch -D release/v${VERSION} 2>/dev/null || true
91+
git branch -D chore/release-v${VERSION} 2>/dev/null || true
9292
9393
- name: Create release branch
9494
run: |
95-
git checkout -b release/v${VERSION}
95+
git checkout -b chore/release-v${VERSION}
9696
9797
- name: Install the signing certificate
9898
env:
@@ -242,7 +242,16 @@ jobs:
242242
243243
- name: Commit version changes
244244
run: |
245-
git add -A
245+
# Only add the version-related files, exclude build artifacts
246+
git add \
247+
CHANGELOG.md \
248+
Framework/Info.plist \
249+
Package.swift \
250+
mParticle-Apple-SDK.podspec \
251+
mParticle-Apple-SDK/MPConstants.swift \
252+
mParticle-Apple-SDK/MPIConstants.m \
253+
mParticle_Apple_SDK.json
254+
246255
git commit -m "chore(release): ${VERSION}
247256
248257
Updates version to ${VERSION} in:
@@ -256,7 +265,7 @@ jobs:
256265
257266
- name: Push release branch
258267
run: |
259-
git push origin release/v${VERSION}
268+
git push origin chore/release-v${VERSION}
260269
261270
- name: Create Pull Request
262271
env:
@@ -328,6 +337,6 @@ jobs:
328337
329338
gh pr create \
330339
--base main \
331-
--head release/v${VERSION} \
340+
--head chore/release-v${VERSION} \
332341
--title "chore: Release v${VERSION}" \
333342
--body "$PR_BODY"

0 commit comments

Comments
 (0)