Skip to content

Commit 580bc26

Browse files
authored
ci: use concurrency for gh workflow (#193)
* ci: add concurrency configuration to CI workflow * fix: refactor image marker name generation
1 parent aab4edb commit 580bc26

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
types: [opened, synchronize, reopened]
55
workflow_dispatch:
66

7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.head_ref }}
9+
cancel-in-progress: true
10+
711
jobs:
812

913
install-dep:

android/src/main/java/com/jimmydaddy/imagemarker/ImageMarkerManager.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ class ImageMarkerManager(private val context: ReactApplicationContext) : ReactCo
284284
return if (null != filename) {
285285
if (filename.endsWith(".jpg") || filename.endsWith(".png")) "$cacheDir/$filename" else "$cacheDir/$filename$ext"
286286
} else {
287-
val name = UUID.randomUUID().toString() + "image marker"
287+
val name = UUID.randomUUID().toString() + "_image_marker"
288288
"$cacheDir/$name$ext"
289289
}
290290
}

0 commit comments

Comments
 (0)