mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
ci(github-actions): Check for null tagName in post-release-cleanup (#3398)
This commit is contained in:
parent
91d482e421
commit
c122561df7
1 changed files with 1 additions and 1 deletions
2
.github/workflows/post-release-cleanup.yml
vendored
2
.github/workflows/post-release-cleanup.yml
vendored
|
|
@ -34,7 +34,7 @@ jobs:
|
|||
BASE_VERSION="${{ github.event.inputs.base_version }}"
|
||||
TAG_PREFIX="v${BASE_VERSION}-"
|
||||
echo "Searching for pre-releases with tag prefix '$TAG_PREFIX'."
|
||||
RELEASES_TO_DELETE=$(gh release list --json tagName,isPrerelease --limit 100 | jq -r --arg prefix "$TAG_PREFIX" '.[] | select(.isPrerelease == true and .tagName | startswith($prefix)) | .tagName')
|
||||
RELEASES_TO_DELETE=$(gh release list --json tagName,isPrerelease --limit 100 | jq -r --arg prefix "$TAG_PREFIX" '.[] | select(.isPrerelease == true and .tagName != null and (.tagName | startswith($prefix))) | .tagName')
|
||||
|
||||
if [ -z "$RELEASES_TO_DELETE" ]; then
|
||||
echo "No pre-releases found for base version $BASE_VERSION."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue