Skip to content

Commit 13bd0b2

Browse files
committed
clear unity locks
1 parent 3bd8c04 commit 13bd0b2

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

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

Lines changed: 10 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,17 @@ 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+
rm -rf OneSignalExample/Library OneSignalExample/Temp OneSignalExample/obj OneSignalExample/UserSettings || true
200+
191201
- name: Run UpdateProjectVersion
192202
uses: buildalon/unity-action@v3
193203
with:
194204
project-path: OneSignalExample
195205
args: -quit -batchmode -nographics -buildTarget Android -executeMethod OneSignalSDK.OneSignalPackagePublisher.UpdateProjectVersion
196-
197206

198207
- name: Run ExportUnityPackage
199208
uses: buildalon/unity-action@v3

0 commit comments

Comments
 (0)