Skip to content

Commit 083210b

Browse files
authored
Fix for cleaning main-devel assets (#7302)
1 parent 96b7395 commit 083210b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/update-release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Clean release
22
permissions: {}
33
on:
4+
workflow_dispatch:
45
workflow_run: # Triggered when long running macos workflow ends
56
workflows: [macos]
67
types: [completed]
@@ -20,7 +21,7 @@ jobs:
2021
# Total assets from each main branch commmit:
2122
# Python wheels (4x4) + Viewer (3) + C++ libs (4+2+2) = 27,
2223
release_assets=($(gh release view main-devel --json assets --jq '.assets[] | .name'))
23-
last_shas=($(git log --pretty=format:%h --abbrev-commit -n 3))
24+
last_shas=($(git log -b origin/main --pretty=format:%h --abbrev-commit -n 3))
2425
echo "Removing release assets except from last 3 commits: ${last_shas[@]}"
2526
for relass in "${release_assets[@]}"; do
2627
found=false

0 commit comments

Comments
 (0)