Skip to content

Commit 95af34f

Browse files
committed
use shared setup git user action
1 parent 69f8c46 commit 95af34f

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

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

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ on:
1414
type: string
1515
required: true
1616
base_branch:
17-
description: 'Target branch for the PR (e.g. main for regular releases, 5.3-main for 5.3.x releases)'
17+
description: "Target branch for the PR (e.g. main for regular releases, 5.3-main for 5.3.x releases)"
1818
type: string
1919
required: false
20-
default: 'main'
20+
default: "main"
2121

2222
permissions:
2323
contents: write
@@ -60,10 +60,8 @@ jobs:
6060
ref: ${{ needs.prep.outputs.release_branch }}
6161
fetch-depth: 0
6262

63-
- name: Configure Git
64-
run: |
65-
git config --local user.email "noreply@onesignal.com"
66-
git config --local user.name "github-actions[bot]"
63+
- name: Setup Git User
64+
uses: OneSignal/sdk-actions/.github/actions/setup-git-user@main
6765

6866
- name: Extract Current Version
6967
id: extract_version
@@ -75,7 +73,7 @@ jobs:
7573
- name: Setup Xcode
7674
uses: maxim-lobanov/setup-xcode@v1
7775
with:
78-
xcode-version: '15.2'
76+
xcode-version: "15.2"
7977

8078
- name: Install the Apple distribution certificate and provisioning profile (OneSignal)
8179
uses: apple-actions/import-codesign-certs@v2
@@ -194,6 +192,9 @@ jobs:
194192
path: xcframework-repo
195193
token: ${{ secrets.PAT_TOKEN_ONESIGNAL_XCFRAMEWORK }}
196194

195+
- name: Setup Git User
196+
uses: OneSignal/sdk-actions/.github/actions/setup-git-user@main
197+
197198
- name: Update Package.swift in XCFramework Repository
198199
run: |
199200
# Copy Package.swift from iOS SDK to XCFramework repo
@@ -211,10 +212,6 @@ jobs:
211212
# Create release branch
212213
git checkout -b $RELEASE_BRANCH
213214
214-
# Configure git
215-
git config --local user.email "noreply@onesignal.com"
216-
git config --local user.name "github-actions[bot]"
217-
218215
# Commit changes
219216
git commit -am "Release $VERSION"
220217

0 commit comments

Comments
 (0)