Skip to content

Commit 68832cd

Browse files
authored
ci: Ensure we publish something (#869)
1 parent a912f75 commit 68832cd

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,15 @@ jobs:
3232
- name: Run smart release
3333
run: |-
3434
PUBLISHABLE_CRATES=$(python3 scripts/publishable.py)
35+
ANY_PUBLISHED=0
3536
for crate in $PUBLISHABLE_CRATES; do
3637
echo "Publishing $crate"
37-
cargo smart-release $crate --no-changelog-preview --allow-fully-generated-changelogs --update-crates-index --execute || exit 1
38+
cargo smart-release $crate --no-changelog-preview --allow-fully-generated-changelogs --update-crates-index --execute && ANY_PUBLISHED=1
3839
done
40+
if [ $ANY_PUBLISHED -eq 0 ]; then
41+
echo "No crates were published."
42+
exit 1
43+
fi
3944
- name: Find Cargo version of fontspector crate
4045
id: find_version
4146
run: |-

0 commit comments

Comments
 (0)