Skip to content

Commit

Permalink
Fix release workflow errors when there is nothing to release
Browse files Browse the repository at this point in the history
  • Loading branch information
graphemecluster committed Dec 18, 2024
1 parent 0d557ce commit 1de8887
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
run: |
if [ ! -d output ]; then
echo "No artifacts to release."
exit 0
fi
assets=$(gh release view latest --json assets --jq '.assets[].name')
for prefix in $(ls output | xargs -n 1 basename | sed 's/-.*/-/' | sort -u); do
for asset in $(echo "$assets" | grep "^$prefix"); do
Expand Down

0 comments on commit 1de8887

Please sign in to comment.