Skip to content

Commit 37949ad

Browse files
authored
chore: fix release actions (#1630)
* chore: update macos runner image The macOS-13 based runner images are now retired. For more details, see actions/runner-images#13046. * chore: fix failing release action Errors: - Run OneSignal/sdk-actions/.github/actions/setup-git-user@main - Run git config --local user.email "noreply@onesignal.com" - fatal: --local can only be used inside a git repository It needs to be moved back into the body of the xcframework repository steps
1 parent c2ba503 commit 37949ad

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/create-release-prs.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
# Step 2: Update iOS-specific files and build binaries
3535
update-and-build:
3636
needs: prep
37-
runs-on: macos-13
37+
runs-on: macos-14
3838

3939
outputs:
4040
version_from: ${{ steps.extract_version.outputs.current_version }}
@@ -152,7 +152,7 @@ jobs:
152152
# Step 4: Update XCFramework repository
153153
update-xcframework:
154154
needs: [prep, update-and-build, create-ios-pr]
155-
runs-on: macos-13
155+
runs-on: macos-14
156156

157157
env:
158158
VERSION: ${{ github.event.inputs.version }}
@@ -192,9 +192,6 @@ jobs:
192192
path: xcframework-repo
193193
token: ${{ secrets.PAT_TOKEN_ONESIGNAL_XCFRAMEWORK }}
194194

195-
- name: Setup Git User
196-
uses: OneSignal/sdk-actions/.github/actions/setup-git-user@main
197-
198195
- name: Update Package.swift in XCFramework Repository
199196
run: |
200197
# Copy Package.swift from iOS SDK to XCFramework repo
@@ -212,6 +209,10 @@ jobs:
212209
# Create release branch
213210
git checkout -b $RELEASE_BRANCH
214211
212+
# Configure git
213+
git config --local user.email "noreply@onesignal.com"
214+
git config --local user.name "github-actions[bot]"
215+
215216
# Commit changes
216217
git commit -am "Release $VERSION"
217218

0 commit comments

Comments
 (0)