Skip to content

Commit 7f07ac2

Browse files
committed
ci: use setup git user action
1 parent 6ad5f55 commit 7f07ac2

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ jobs:
7979
ref: ${{ needs.prep.outputs.release_branch }}
8080
token: ${{ secrets.GH_PUSH_TOKEN || github.token }}
8181

82+
- name: Setup Git User
83+
uses: OneSignal/sdk-actions/.github/actions/setup-git-user@main
84+
8285
- name: Get current native SDK versions
8386
id: current_versions
8487
run: |
@@ -134,9 +137,6 @@ jobs:
134137
sed -i "s/bundleVersion: .*/bundleVersion: ${{ inputs.unity_version }}/" OneSignalExample/ProjectSettings/ProjectSettings.asset
135138
sed -i "s/setSdkVersion:@\"[0-9]*\"/setSdkVersion:@\"${PADDED_VERSION}\"/" com.onesignal.unity.ios/Runtime/Plugins/iOS/UIApplication+OneSignalUnity.mm
136139
137-
git config user.name "github-actions[bot]"
138-
git config user.email "github-actions[bot]@users.noreply.github.com"
139-
140140
# Only commit if there are changes
141141
git add -A
142142
git diff --staged --quiet && exit 0
@@ -169,6 +169,9 @@ jobs:
169169
ref: ${{ needs.prep.outputs.release_branch }}
170170
token: ${{ secrets.GH_PUSH_TOKEN || github.token }}
171171

172+
- name: Setup Git User
173+
uses: OneSignal/sdk-actions/.github/actions/setup-git-user@main
174+
172175
- name: Get PR release notes
173176
id: notes
174177
run: |
@@ -185,8 +188,6 @@ jobs:
185188
awk -v ver="${{ inputs.unity_version }}" -v notes="$RELEASE_NOTES" \
186189
'/^## \[Unreleased\]/ { print $0; print "## [" ver "]\n### Changed"; print notes "\n"; next } { print $0 }' \
187190
OneSignalExample/Assets/OneSignal/CHANGELOG.md > /tmp/changelog.tmp && mv /tmp/changelog.tmp OneSignalExample/Assets/OneSignal/CHANGELOG.md
188-
git config user.name "github-actions[bot]"
189-
git config user.email "github-actions[bot]@users.noreply.github.com"
190191
191192
# Only commit if there are changes
192193
git add -A

0 commit comments

Comments
 (0)