Skip to content

Commit 4b1bf3b

Browse files
authored
ci: skip release candidate if generated reference match current release (#575)
1 parent 8373513 commit 4b1bf3b

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,13 @@ jobs:
8484
;;
8585
esac
8686
87+
# Skip if docs already reference this version
88+
if grep -q "Using slack v${NEXT_VERSION}" docs/guides/installing-the-slack-cli-for-mac-and-linux.md; then
89+
echo "Docs already at v$NEXT_VERSION, nothing to release"
90+
echo "has_changes=false" >> "$GITHUB_OUTPUT"
91+
exit 0
92+
fi
93+
8794
echo "has_changes=true" >> "$GITHUB_OUTPUT"
8895
echo "next=$NEXT_VERSION" >> "$GITHUB_OUTPUT"
8996
echo "semver=$SEMVER" >> "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)