Skip to content

Commit b48d58f

Browse files
committed
clear unity locks
1 parent 3bd8c04 commit b48d58f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ on:
3333
required: false
3434
type: string
3535

36+
permissions:
37+
contents: write
38+
pull-requests: write
39+
3640
jobs:
3741
prep:
3842
uses: OneSignal/sdk-actions/.github/workflows/prep-release.yml@main
@@ -188,12 +192,16 @@ jobs:
188192
sed -i '' "s/setSdkVersion:@\"[0-9]*\"/setSdkVersion:@\"${PADDED_VERSION}\"/" \
189193
com.onesignal.unity.ios/Runtime/Plugins/iOS/UIApplication+OneSignalUnity.mm
190194
195+
- name: Cleaning up Unity locks
196+
run: |
197+
pkill -f Unity || true
198+
rm -f OneSignalExample/Temp/UnityLockfile
199+
191200
- name: Run UpdateProjectVersion
192201
uses: buildalon/unity-action@v3
193202
with:
194203
project-path: OneSignalExample
195204
args: -quit -batchmode -nographics -buildTarget Android -executeMethod OneSignalSDK.OneSignalPackagePublisher.UpdateProjectVersion
196-
197205

198206
- name: Run ExportUnityPackage
199207
uses: buildalon/unity-action@v3

0 commit comments

Comments
 (0)